VirtualBox

Changeset 62740 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 30, 2016 12:29:40 PM (8 years ago)
Author:
vboxsync
Message:

VDI*: Disabling MSC warnings for the v1plus UUIDs alignment 'problem'. Should be rather harmless since UUIDs aren't really two uint64_t's.

Location:
trunk/src/VBox/Storage
Files:
2 edited

Legend:

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

    r62153 r62740  
    373373
    374374    /* Init uuids. */
     375#ifdef _MSC_VER
     376# pragma warning(disable:4366) /* (harmless "misalignment") */
     377#endif
    375378    RTUuidCreate(&pHeader->u.v1plus.uuidCreate);
    376379    RTUuidClear(&pHeader->u.v1plus.uuidModify);
    377380    RTUuidClear(&pHeader->u.v1plus.uuidLinkage);
    378381    RTUuidClear(&pHeader->u.v1plus.uuidParentModify);
     382#ifdef _MSC_VER
     383# pragma warning(default:4366)
     384#endif
    379385
    380386    /* Mark LCHS geometry not-calculated. */
  • trunk/src/VBox/Storage/VDICore.h

    r62482 r62740  
    468468}
    469469
     470#ifdef _MSC_VER
     471# pragma warning(disable:4366) /* (harmless "misalignment") */
     472#endif
     473
    470474DECLINLINE(PRTUUID) getImageCreationUUID(PVDIHEADER ph)
    471475{
     
    510514    return NULL;
    511515}
     516
     517#ifdef _MSC_VER
     518# pragma warning(default:4366)
     519#endif
    512520
    513521/**
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