VirtualBox

Ticket #6715: VirtualBox-3.2.0-gcc-4.5-warning-workaround.patch

File VirtualBox-3.2.0-gcc-4.5-warning-workaround.patch, 523 bytes (added by Bernhard Rosenkraenzer, 15 years ago)

Workaround for the (apparently bogus) warning produced by gcc 4.5

  • VirtualBox-3.2.0_OSE/src/VBox/VMM/VMMAll/PGMAllGst.h

    old new RT_C_DECLS_END  
    2828
    2929
    3030
     31#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 5
     32    // Work around gcc 4.5 producing warnings when a X86PDPE is constructed
     33    // while the Makefiles use -Werror
     34#pragma GCC diagnostic warning "-Wuninitialized"
     35#endif
    3136/**
    3237 * Gets effective Guest OS page information.
    3338 *

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