mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-24 16:10:11 +00:00
Disable new clang 10.0.0 warnings about misleading indentation in ce(4)
and cp(4). These are false positives, since some of the driver source has been deliberately obfuscated.
This commit is contained in:
parent
dacf624d5f
commit
bc7d20c424
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/clang1000-import/; revision=357872
@ -93,8 +93,9 @@ dev/agp/agp_via.c optional agp
|
||||
dev/ce/ceddk.c optional ce
|
||||
dev/ce/if_ce.c optional ce
|
||||
dev/ce/tau32-ddk.c optional ce \
|
||||
compile-with "${NORMAL_C} ${NO_WCONSTANT_CONVERSION}"
|
||||
dev/cp/cpddk.c optional cp
|
||||
compile-with "${NORMAL_C} ${NO_WCONSTANT_CONVERSION} ${NO_WMISLEADING_INDENTATION}"
|
||||
dev/cp/cpddk.c optional cp \
|
||||
compile-with "${NORMAL_C} ${NO_WMISLEADING_INDENTATION}"
|
||||
dev/cp/if_cp.c optional cp
|
||||
dev/ctau/ctau.c optional ctau
|
||||
dev/ctau/ctddk.c optional ctau
|
||||
|
@ -37,6 +37,9 @@ CWARNEXTRA+= -Wno-error-shift-negative-value
|
||||
.if ${COMPILER_VERSION} >= 40000
|
||||
CWARNEXTRA+= -Wno-address-of-packed-member
|
||||
.endif
|
||||
.if ${COMPILER_VERSION} >= 100000
|
||||
NO_WMISLEADING_INDENTATION= -Wno-misleading-indentation
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${COMPILER_TYPE} == "gcc"
|
||||
|
@ -27,4 +27,5 @@ opt_ng_cronyx.h:
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
CWARNFLAGS.tau32-ddk.c= ${NO_WCONSTANT_CONVERSION}
|
||||
CWARNFLAGS.tau32-ddk.c+= ${NO_WCONSTANT_CONVERSION}
|
||||
CWARNFLAGS.tau32-ddk.c+= ${NO_WMISLEADING_INDENTATION}
|
||||
|
@ -26,3 +26,5 @@ opt_ng_cronyx.h:
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
CWARNFLAGS.cpddk.c+= ${NO_WMISLEADING_INDENTATION}
|
||||
|
Loading…
Reference in New Issue
Block a user