VirtualBox

Changeset 86037 in vbox for trunk


Ignore:
Timestamp:
Sep 7, 2020 11:12:00 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140247
Message:

Devices/Graphics: use current VMSVGA headers (GCC 4 tweaks)

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r86032 r86037  
    290290  VBoxDD_INCS           += $(VBOX_PATH_VMSVGA_INC)
    291291  VBoxDD_SOURCES        += Graphics/DevVGA-SVGA.cpp
     292  ifneq ($(KBUILD_TARGET),win)
     293   if $(VBOX_GCC_VERSION_CXX) < 40600
     294    # Disable "ISO C++ prohibits anonymous structs [-Werror=pedantic]" caused by Mesa VMSVGA driver headers
     295    # For GCC >= 4.6.0 the warning is disabled in DevVGA_SVGA.h
     296    Graphics/DevVGA.cpp_CXXFLAGS = -Wno-pedantic
     297    Graphics/DevVGA-SVGA.cpp_CXXFLAGS = -Wno-pedantic
     298    Graphics/DevVGA_VBVA.cpp_CXXFLAGS = -Wno-pedantic
     299    Graphics/DevVGA_VDMA.cpp_CXXFLAGS = -Wno-pedantic
     300   endif
     301  endif
    292302 endif
    293303 ifdef VBOX_WITH_VMSVGA3D
     
    353363  else if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.14 10.15 10.16 11.0)
    354364   Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin        = $(VBOX_GCC_Wno-deprecated-declarations)
     365  endif
     366  ifneq ($(KBUILD_TARGET),win)
     367   if $(VBOX_GCC_VERSION_CXX) < 40600
     368    # Disable "ISO C++ prohibits anonymous structs [-Werror=pedantic]" caused by Mesa VMSVGA driver headers
     369    # For GCC >= 4.6.0 the warning is disabled in DevVGA_SVGA.h
     370    Graphics/DevVGA-SVGA3d.cpp_CXXFLAGS = -Wno-pedantic
     371    Graphics/DevVGA-SVGA3d-glHlp.cpp_CXXFLAGS = -Wno-pedantic
     372    Graphics/DevVGA-SVGA3d-hlp.cpp_CXXFLAGS = -Wno-pedantic
     373    Graphics/DevVGA-SVGA3d-info.cpp_CXXFLAGS = -Wno-pedantic
     374    Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS = -Wno-pedantic
     375    Graphics/DevVGA-SVGA3d-savedstate.cpp_CXXFLAGS = -Wno-pedantic
     376    Graphics/DevVGA-SVGA3d-shared.cpp_CXXFLAGS = -Wno-pedantic
     377   endif
    355378  endif
    356379 endif
  • trunk/src/VBox/Devices/testcase/Makefile.kmk

    r86024 r86037  
    9595        $(VBOX_PATH_VMSVGA_INC)
    9696tstDeviceStructSize_SOURCES  = tstDeviceStructSize.cpp
     97ifneq ($(KBUILD_TARGET),win)
     98 if $(VBOX_GCC_VERSION_CXX) < 40600
     99  # Disable "ISO C++ prohibits anonymous structs [-Werror=pedantic]" caused by Mesa VMSVGA driver headers
     100  # For GCC >= 4.6.0 the warning is disabled in DevVGA_SVGA.h
     101tstDeviceStructSize.cpp_CXXFLAGS = -Wno-pedantic
     102 endif
     103endif
    97104tstDeviceStructSize_CLEAN    = \
    98105        $(VBOX_DEVICES_TEST_OUT_DIR)/tstDeviceStructSizeRC.h \
Note: See TracChangeset for help on using the changeset viewer.

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