VirtualBox

Changeset 87753 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
Feb 13, 2021 4:08:10 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142805
Message:

Storage/VHDX: Fixed compilation in strict release builds on Linux. See @todo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VHDX.cpp

    r82968 r87753  
    636636    RT_NOREF1(enmConv);
    637637#if 1
    638     memcpy(pUuidConv, pUuid, sizeof(RTUUID));
     638    /** @todo r=andy Code looks temporary disabled to me, fixes strict release builds:
     639     *        "accessing 16 bytes at offsets 0 and 0 overlaps 16 bytes at offset 0 [-Werror=restrict] */
     640    RTUUID uuidTmp;
     641    memcpy(&uuidTmp,  pUuid,    sizeof(RTUUID));
     642    memcpy(pUuidConv, &uuidTmp, sizeof(RTUUID));
    639643#else
    640644    pUuidConv->Gen.u32TimeLow              = SET_ENDIAN_U32(pUuid->Gen.u32TimeLow);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette