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:
parent
d520204085
commit
80d966a005
@ -516,9 +516,8 @@ rule KernelArchitectureSetup architecture
|
|||||||
}
|
}
|
||||||
|
|
||||||
# warning flags
|
# warning flags
|
||||||
HAIKU_KERNEL_WARNING_CCFLAGS = -Wall -Wno-trigraphs -Wmissing-prototypes
|
HAIKU_KERNEL_WARNING_CCFLAGS = $(HAIKU_WARNING_CCFLAGS_$(architecture)) ;
|
||||||
-Wno-multichar ;
|
HAIKU_KERNEL_WARNING_C++FLAGS = $(HAIKU_WARNING_C++FLAGS_$(architecture)) ;
|
||||||
HAIKU_KERNEL_WARNING_C++FLAGS = -Wall -Wno-trigraphs -Wno-multichar ;
|
|
||||||
|
|
||||||
# debug flags
|
# debug flags
|
||||||
local level ;
|
local level ;
|
||||||
@ -626,7 +625,7 @@ rule ArchitectureSetupWarnings architecture
|
|||||||
EnableWerror src add-ons kernel drivers bluetooth ;
|
EnableWerror src add-ons kernel drivers bluetooth ;
|
||||||
EnableWerror src add-ons kernel drivers bus ;
|
EnableWerror src add-ons kernel drivers bus ;
|
||||||
EnableWerror src add-ons kernel drivers common ;
|
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 dvb ;
|
||||||
# EnableWerror src add-ons kernel drivers graphics ;
|
# EnableWerror src add-ons kernel drivers graphics ;
|
||||||
EnableWerror src add-ons kernel drivers graphics intel_extreme ;
|
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 iso9660 ;
|
||||||
EnableWerror src add-ons kernel file_systems layers ;
|
EnableWerror src add-ons kernel file_systems layers ;
|
||||||
EnableWerror src add-ons kernel file_systems netfs ;
|
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 nfs4 ;
|
||||||
# EnableWerror src add-ons kernel file_systems ntfs ;
|
# EnableWerror src add-ons kernel file_systems ntfs ;
|
||||||
EnableWerror src add-ons kernel file_systems packagefs ;
|
EnableWerror src add-ons kernel file_systems packagefs ;
|
||||||
|
@ -13,8 +13,7 @@ Includes [ FGristFiles kernel_c++_structs.h ]
|
|||||||
SubDirCcFlags [ FDefines _KERNEL=1 FBSD_DRIVER=1 ]
|
SubDirCcFlags [ FDefines _KERNEL=1 FBSD_DRIVER=1 ]
|
||||||
-Wno-format
|
-Wno-format
|
||||||
-Wno-unused
|
-Wno-unused
|
||||||
-Wno-uninitialized
|
-Wno-uninitialized ;
|
||||||
-Werror ;
|
|
||||||
|
|
||||||
UseHeaders [ FDirName $(SUBDIR) ] : true ;
|
UseHeaders [ FDirName $(SUBDIR) ] : true ;
|
||||||
|
|
||||||
|
@ -9,8 +9,7 @@ UsePrivateKernelHeaders ;
|
|||||||
SubDirCcFlags [ FDefines _KERNEL=1 FBSD_DRIVER=1 _XOPEN_SOURCE ]
|
SubDirCcFlags [ FDefines _KERNEL=1 FBSD_DRIVER=1 _XOPEN_SOURCE ]
|
||||||
-Wno-format
|
-Wno-format
|
||||||
-Wno-unused
|
-Wno-unused
|
||||||
-Wno-uninitialized
|
-Wno-uninitialized ;
|
||||||
-Werror ;
|
|
||||||
|
|
||||||
UseHeaders [ FDirName $(SUBDIR) ] : true ;
|
UseHeaders [ FDirName $(SUBDIR) ] : true ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user