kernel build: Disable unhelpful GCC warning (tripped after r346352)

-Wformat-zero-length does not highlight any particularly wrong code and it
is especially meaningless for device_printf().  Turn it off entirely to
remove a source of false positives.

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2019-04-19 20:08:45 +00:00
parent aa7d14e555
commit bd48a01043
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346412

View file

@ -61,7 +61,8 @@ CWARNEXTRA?= -Wno-error=address \
CWARNEXTRA+= -Wno-error=misleading-indentation \
-Wno-error=nonnull-compare \
-Wno-error=shift-overflow \
-Wno-error=tautological-compare
-Wno-error=tautological-compare \
-Wno-format-zero-length
.endif
.if ${COMPILER_VERSION} >= 70200
CWARNEXTRA+= -Wno-error=memset-elt-size