VirtualBox

Changeset 80311 in vbox


Ignore:
Timestamp:
Aug 15, 2019 8:53:11 PM (5 years ago)
Author:
vboxsync
Message:

gvm.h: Shut up g++ warnings. bugref:9217

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/gvm.h

    r80310 r80311  
    114114} GVMCPU;
    115115#ifdef VBOX_BUGREF_9217
     116# if RT_GNUC_PREREQ(4, 6) && defined(__cplusplus)
     117#  pragma GCC diagnostic push
     118# endif
     119# if RT_GNUC_PREREQ(4, 3) && defined(__cplusplus)
     120#  pragma GCC diagnostic ignored "-Winvalid-offsetof"
     121# endif
    116122AssertCompileMemberAlignment(GVMCPU, idCpu,  4096);
    117123AssertCompileMemberAlignment(GVMCPU, gvmm,   64);
     
    120126# endif
    121127AssertCompileSizeAlignment(GVMCPU,           4096);
     128# if RT_GNUC_PREREQ(4, 6) && defined(__cplusplus)
     129#  pragma GCC diagnostic pop
     130# endif
    122131#else
    123132AssertCompileMemberOffset(GVMCPU, gvmm,      64);
     
    229238} GVM;
    230239#ifdef VBOX_BUGREF_9217
     240# if RT_GNUC_PREREQ(4, 6) && defined(__cplusplus)
     241#  pragma GCC diagnostic push
     242# endif
     243# if RT_GNUC_PREREQ(4, 3) && defined(__cplusplus)
     244#  pragma GCC diagnostic ignored "-Winvalid-offsetof"
     245# endif
    231246AssertCompileMemberAlignment(GVM, gvmm,     64);
    232247AssertCompileMemberAlignment(GVM, gmm,      64);
     
    237252AssertCompileMemberAlignment(GVM, aCpus,    4096);
    238253AssertCompileSizeAlignment(GVM,             4096);
     254# if RT_GNUC_PREREQ(4, 6) && defined(__cplusplus)
     255#  pragma GCC diagnostic pop
     256# endif
    239257#else
    240258AssertCompileMemberOffset(GVM, gvmm,        64);
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