VirtualBox

Changeset 63448 in vbox for trunk/Config.kmk


Ignore:
Timestamp:
Aug 14, 2016 11:58:07 PM (8 years ago)
Author:
vboxsync
Message:

Config.kmk: working on darwin, added VBOX_GCC_Wno-overloaded-virtual.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r63439 r63448  
    25702570        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-vla               ?= $(call VBOX_GCC_CHECK_CXX,-Wno-vla,)'
    25712571        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-overlength-strings?= $(call VBOX_GCC_CHECK_CC,-Wno-overlength-strings,)'
     2572        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-overloaded-virtual?= $(call VBOX_GCC_CHECK_CXX,-Wno-overloaded-virtual,)'
    25722573        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_fno-stack-protector   ?= $(call VBOX_GCC_CHECK_CC,-fno-stack-protector,)'
    25732574        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_fno-dwarf2-cfi-asm    ?= $(call VBOX_GCC_CHECK_CC,-fno-dwarf2-cfi-asm,)'
     
    27122713        $(VBOX_GCC_Wno-string-plus-int) $(VBOX_GCC_Wno-nested-anon-types)
    27132714VBOX_GCC_WARN_PEDANTIC = -Wshadow $(VBOX_GCC_WARN) -Wno-long-long
    2714 if $(VBOX_GCC_VERSION_CXX) >= 40200 # gcc 4.2.x+ (4.1.2 is causing trouble with the extpack & add builds)
     2715if $(VBOX_GCC_VERSION_CXX) >= 40200 || defined(VBOX_WITH_MASOCHISTIC_WARNINGS) # gcc 4.2.x+ (4.1.2 is causing trouble with the extpack & add builds)
    27152716 VBOX_GCC_WARN_MASOCHISTIC ?= -Wunused-variable -Wunused-function -Wunused-label -Wunused-parameter
    27162717endif
    2717 if1of ($(KBUILD_TARGET),linux)
     2718if $(KBUILD_TARGET) == "linux" || defined(VBOX_GCC_WARN_MASOCHISTIC)
    27182719 VBOX_GCC_WARN_PEDANTIC += $(VBOX_GCC_WARN_MASOCHISTIC)
    27192720endif
    27202721
    2721 VBOX_GCC_PEDANTIC_CXX ?= -pedantic $(VBOX_GCC_WARN_PEDANTIC) $(VBOX_GCC_Wno-return-type-c-linkage)
     2722VBOX_GCC_PEDANTIC_CXX ?= -pedantic $(VBOX_GCC_WARN_PEDANTIC) $(VBOX_GCC_Wno-return-type-c-linkage) $(VBOX_GCC_Wno-overloaded-virtual)
    27222723VBOX_GCC_PEDANTIC_C   ?= -pedantic $(VBOX_GCC_WARN_PEDANTIC) -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror-implicit-function-declaration
    27232724
     
    28692870#
    28702871if !defined(VBOX_WITHOUT_NO_GCC_WARNING_POLICY) && !defined(VBOX_WITH_NO_GCC_WARNING_POLICY)
    2871  if1of ($(KBUILD_TARGET),linux)
     2872 if defined(VBOX_WITH_MASOCHISTIC_WARNINGS) # gcc 4.6.x+
     2873  VBOX_WITH_NO_GCC_WARNING_POLICY = 1
     2874  $(info build debug: VBOX_WITH_NO_GCC_WARNING_POLICY = 1 (*))
     2875 else if1of ($(KBUILD_TARGET),linux)
    28722876  if $(VBOX_GCC_VERSION_CXX) >= 40600 # gcc 4.6.x+
    28732877   VBOX_WITH_NO_GCC_WARNING_POLICY = 1
    2874    $(info VBOX_WITH_NO_GCC_WARNING_POLICY=1)
     2878   $(info build debug: VBOX_WITH_NO_GCC_WARNING_POLICY = 1)
    28752879  endif
    28762880 endif
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