VirtualBox

Changeset 40632 in vbox


Ignore:
Timestamp:
Mar 26, 2012 11:44:30 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77053
Message:

Config.kmk/VBOXR0DRV: Do NOT use -Wnested-externs as it will get screwed by our AssertCompilNS macro.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r40620 r40632  
    29532953TEMPLATE_VBOXR0DRV_INCS                = $(VBOX_LINUX_INCS)
    29542954TEMPLATE_VBOXR0DRV_CFLAGS              = -nostdinc -iwithprefix include $(VBOX_LINUX_INCLUDE) \
    2955         $(VBOX_GCC_WARN) -Wstrict-prototypes $(VBOX_GCC_Wno-pointer-sign) -Wno-sign-compare \
    2956         $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
     2955        $(VBOX_GCC_WARN) -Wstrict-prototypes $(VBOX_GCC_Wno-pointer-sign) -Wno-sign-compare $(VBOX_GCC_fdiagnostics-show-option) \
     2956        $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \
     2957        -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
    29572958TEMPLATE_VBOXR0DRV_CFLAGS.x86          = -mpreferred-stack-boundary=2 -msoft-float
    29582959TEMPLATE_VBOXR0DRV_CFLAGS.amd64        = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow \
     
    29872988## @todo try use VBOX_GCC_PEDANTIC_CXX
    29882989TEMPLATE_VBOXR0DRV_CXXFLAGS            = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) \
    2989         -g $(VBOX_GCC_pipe) $(VBOX_GCC_WARN) -Wno-long-long -fno-common -nostdinc -fno-builtin -finline \
     2990        -g $(VBOX_GCC_pipe) $(VBOX_GCC_WARN) -Wno-long-long $(VBOX_GCC_fdiagnostics-show-option) \
     2991        -fno-common -nostdinc -fno-builtin -finline \
    29902992        -fno-keep-inline-functions -fno-exceptions -msoft-float \
    29912993        -fapple-kext -fno-rtti -fcheck-new -force_cpusubtype_ALL \
     
    30183020# Exclude -Wall because of solaris headers' pragma ident warnings that gcc refuses to supress.
    30193021TEMPLATE_VBOXR0DRV_CFLAGS              = -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \
    3020         -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs \
     3022        -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_fdiagnostics-show-option) \
    30213023        -Wshadow -Wuninitialized -Wunused-function -Wunused-label -Wunused-value -Wunused-variable \
    30223024        -Wformat  -Wimplicit-int -Wimplicit-function-declaration -Werror-implicit-function-declaration -Wparentheses \
     
    30753077# omitting: -Wcast-qual, -Wredundant-decls
    30763078TEMPLATE_VBOXR0DRV_CFLAGS              =  \
    3077         $(VBOX_GCC_WARN) -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \
    3078         -Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs \
     3079        $(VBOX_GCC_WARN) -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) $(VBOX_GCC_fdiagnostics-show-option) \
     3080        -Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes \
    30793081        -Wimplicit-function-declaration -Werror-implicit-function-declaration \
    30803082        -O2 -fformat-extensions -ffreestanding -fno-strict-aliasing -fno-common -finline-limit=8000 \
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