VirtualBox

Changeset 63110 in vbox


Ignore:
Timestamp:
Aug 6, 2016 8:29:59 PM (8 years ago)
Author:
vboxsync
Message:

Config.kmk,zlib/Makefile.kmk: Non-pedantic MSC and such.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r63109 r63110  
    15881588VBOX_GCC_PEDANTIC_CXX ?= -pedantic $(VBOX_GCC_WARN_PEDANTIC) $(VBOX_GCC_Wno-return-type-c-linkage)
    15891589VBOX_GCC_PEDANTIC_C   ?= -pedantic $(VBOX_GCC_WARN_PEDANTIC) -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror-implicit-function-declaration
     1590
     1591VBOX_GCC_NON_PEDANTIC_CXX ?= -Wno-sign-compare
     1592VBOX_GCC_NON_PEDANTIC_C   ?= -Wno-sign-compare -Werror-implicit-function-declaration
     1593
    15901594
    15911595# Disabled Visual C++ warnings, W4:
     
    16341638endif
    16351639VBOX_VCC_WARN_ALL += -wd4242 -wd4244
     1640
     1641# Disable pedantic warnings for NP/NonPedantic templates.
     1642#      -wd4131: 'bi_flush' : uses old-style declarator
     1643#      -wd4255: 'tr_static_init' : no function prototype given: converting '()' to '(void)'
     1644VBOX_VCC_NON_PEDANTIC = -wd4131 -wd4255
    16361645
    16371646ifeq ($(KBUILD_TARGET),win)
     
    46554664endif
    46564665
     4666#
     4667# Non-pedantic variation of VBoxR3Static
     4668#
     4669TEMPLATE_VBoxR3StaticNonPedantic            = VBox Static Ring-3 EXE, non-pedantic.
     4670TEMPLATE_VBoxR3StaticNonPedantic_EXTENDS   = VBoxR3Static
     4671ifeq ($(KBUILD_TARGET),win)
     4672 TEMPLATE_VBoxR3StaticNonPedantic_CXXFLAGS = $(filter-out $(VBOX_VCC_WERR), $(TEMPLATE_VBOXR3_CXXFLAGS)) $(VBOX_VCC_NON_PEDANTIC)
     4673 TEMPLATE_VBoxR3StaticNonPedantic_CFLAGS   = $(filter-out $(VBOX_VCC_WERR), $(TEMPLATE_VBOXR3_CFLAGS))   $(VBOX_VCC_NON_PEDANTIC)
     4674else # gcc:
     4675 TEMPLATE_VBoxR3StaticNonPedantic_TOOL     = $(VBOX_GCC_TOOL)
     4676 TEMPLATE_VBoxR3StaticNonPedantic_CXXFLAGS = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_CXX),$(TEMPLATE_VBOXR3_CXXFLAGS)) \
     4677        $(VBOX_GCC_NON_PEDANTIC_CXX)
     4678 TEMPLATE_VBoxR3StaticNonPedantic_CFLAGS   = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_C)  ,$(TEMPLATE_VBOXR3_CFLAGS)) \
     4679        $(VBOX_GCC_NON_PEDANTIC_CXX)
     4680endif
     4681
    46574682
    46584683#
     
    49194944 TEMPLATE_VBOXR3NPEXE_TOOL               = $(VBOX_GCC_TOOL)
    49204945 TEMPLATE_VBOXR3NPEXE_CXXFLAGS           = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_CXX),$(TEMPLATE_VBOXR3EXE_CXXFLAGS)) \
    4921         -Wno-sign-compare
     4946        $(VBOX_GCC_NON_PEDANTIC_CXX)
    49224947 TEMPLATE_VBOXR3NPEXE_CFLAGS             = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_C)  ,$(TEMPLATE_VBOXR3EXE_CFLAGS)) \
    4923         -Wno-sign-compare -Werror-implicit-function-declaration
     4948        $(VBOX_GCC_NON_PEDANTIC_C)
    49244949endif
    49254950
     
    49364961 TEMPLATE_VBOXR3NP_TOOL                  = $(VBOX_GCC_TOOL)
    49374962 TEMPLATE_VBOXR3NP_CXXFLAGS              = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_CXX),$(TEMPLATE_VBOXR3_CXXFLAGS)) \
    4938         -Wno-sign-compare
     4963        $(VBOX_GCC_NON_PEDANTIC_CXX)
    49394964 TEMPLATE_VBOXR3NP_CFLAGS                = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_C)  ,$(TEMPLATE_VBOXR3_CFLAGS)) \
    4940         -Wno-sign-compare -Werror-implicit-function-declaration
     4965        $(VBOX_GCC_NON_PEDANTIC_C)
    49414966 TEMPLATE_VBOXR3NP_OBJCFLAGS             = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) -pedantic -Wstrict-prototypes,$(TEMPLATE_VBOXR3_OBJCFLAGS))
    49424967 TEMPLATE_VBOXR3NP_OBJCXXFLAGS           = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) -pedantic,$(TEMPLATE_VBOXR3_OBJCXXFLAGS))
     
    49504975TEMPLATE_VBoxR3DllNonPedantic               = VBox ring-3 Non-pedantic, with warnings.
    49514976TEMPLATE_VBoxR3DllNonPedantic_EXTENDS       = VBOXR3
    4952 ifneq ($(KBUILD_TARGET),win) # (only gcc)
     4977ifeq ($(KBUILD_TARGET),win)
     4978 TEMPLATE_VBoxR3DllNonPedantic_CXXFLAGS     = $(filter-out $(VBOX_VCC_WERR), $(TEMPLATE_VBOXR3_CXXFLAGS)) $(VBOX_VCC_NON_PEDANTIC)
     4979 TEMPLATE_VBoxR3DllNonPedantic_CFLAGS       = $(filter-out $(VBOX_VCC_WERR), $(TEMPLATE_VBOXR3_CFLAGS))   $(VBOX_VCC_NON_PEDANTIC)
     4980else # gcc:
    49534981 TEMPLATE_VBoxR3DllNonPedantic_TOOL         = $(VBOX_GCC_TOOL)
    49544982 TEMPLATE_VBoxR3DllNonPedantic_CXXFLAGS     = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_CXX),$(TEMPLATE_VBOXR3_CXXFLAGS)) \
    4955         -Wno-sign-compare
     4983        $(VBOX_GCC_NON_PEDANTIC_CXX)
    49564984 TEMPLATE_VBoxR3DllNonPedantic_CFLAGS       = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_C)  ,$(TEMPLATE_VBOXR3_CFLAGS)) \
    4957         -Wno-sign-compare -Werror-implicit-function-declaration
     4985        $(VBOX_GCC_NON_PEDANTIC_C)
    49584986endif
    49594987
  • trunk/src/libs/zlib-1.2.8/Makefile.kmk

    r62534 r63110  
    2424 LIBRARIES += VBox-zlib-static
    2525endif
    26 VBox-zlib_TEMPLATE = VBoxR3RuntimeDll
     26VBox-zlib_TEMPLATE = VBoxR3RuntimeDllNonPedantic
    2727VBox-zlib_DEFS = verbose=-1 NO_VIZ=1
    2828VBox-zlib_SOURCES = \
     
    4343        inffast.c
    4444
    45 VBox-zlib-static_TEMPLATE = VBOXR3STATIC
     45VBox-zlib-static_TEMPLATE = VBoxR3StaticNonPedantic
    4646VBox-zlib-static_DEFS = $(VBox-zlib_DEFS)
    4747VBox-zlib-static_SOURCES = $(VBox-zlib_SOURCES)
     
    4949ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
    5050 LIBRARIES += VBox-zlib-x86
    51  VBox-zlib-x86_TEMPLATE = VBoxR3Dll-x86
     51 VBox-zlib-x86_TEMPLATE = VBoxR3DllNonPedantic-x86
    5252 VBox-zlib-x86_EXTENDS = VBox-zlib
    5353endif
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