ArchitectureRules: Use the same warning flags for kernel as for userland.

This requires disabling some EnableWerror, as there are a lot of
sign-comparison warnings triggered in certain drivers that now
need to be fixed.
This commit is contained in:
Augustin Cavalier 2018-11-24 17:49:20 -05:00
parent d520204085
commit 80d966a005
3 changed files with 6 additions and 9 deletions

View File

@ -516,9 +516,8 @@ rule KernelArchitectureSetup architecture
}
# warning flags
HAIKU_KERNEL_WARNING_CCFLAGS = -Wall -Wno-trigraphs -Wmissing-prototypes
-Wno-multichar ;
HAIKU_KERNEL_WARNING_C++FLAGS = -Wall -Wno-trigraphs -Wno-multichar ;
HAIKU_KERNEL_WARNING_CCFLAGS = $(HAIKU_WARNING_CCFLAGS_$(architecture)) ;
HAIKU_KERNEL_WARNING_C++FLAGS = $(HAIKU_WARNING_C++FLAGS_$(architecture)) ;
# debug flags
local level ;
@ -626,7 +625,7 @@ rule ArchitectureSetupWarnings architecture
EnableWerror src add-ons kernel drivers bluetooth ;
EnableWerror src add-ons kernel drivers bus ;
EnableWerror src add-ons kernel drivers common ;
EnableWerror src add-ons kernel drivers disk ;
# EnableWerror src add-ons kernel drivers disk ;
EnableWerror src add-ons kernel drivers dvb ;
# EnableWerror src add-ons kernel drivers graphics ;
EnableWerror src add-ons kernel drivers graphics intel_extreme ;
@ -649,7 +648,7 @@ rule ArchitectureSetupWarnings architecture
EnableWerror src add-ons kernel file_systems iso9660 ;
EnableWerror src add-ons kernel file_systems layers ;
EnableWerror src add-ons kernel file_systems netfs ;
EnableWerror src add-ons kernel file_systems nfs ;
# EnableWerror src add-ons kernel file_systems nfs ;
EnableWerror src add-ons kernel file_systems nfs4 ;
# EnableWerror src add-ons kernel file_systems ntfs ;
EnableWerror src add-ons kernel file_systems packagefs ;

View File

@ -13,8 +13,7 @@ Includes [ FGristFiles kernel_c++_structs.h ]
SubDirCcFlags [ FDefines _KERNEL=1 FBSD_DRIVER=1 ]
-Wno-format
-Wno-unused
-Wno-uninitialized
-Werror ;
-Wno-uninitialized ;
UseHeaders [ FDirName $(SUBDIR) ] : true ;

View File

@ -9,8 +9,7 @@ UsePrivateKernelHeaders ;
SubDirCcFlags [ FDefines _KERNEL=1 FBSD_DRIVER=1 _XOPEN_SOURCE ]
-Wno-format
-Wno-unused
-Wno-uninitialized
-Werror ;
-Wno-uninitialized ;
UseHeaders [ FDirName $(SUBDIR) ] : true ;