aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-03-30 22:43:48 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-03-30 22:43:48 +0000
commit47d1e67874fae0e13a4670a5faa97e87d4667140 (patch)
treefa59775c96ad3ab8c88f79dc51603444b0f7c9a7
parentf0bef3d20eb6e28cf66a42c6d34fdfe80a784365 (diff)
downloadsrc-47d1e67874fae0e13a4670a5faa97e87d4667140.tar.gz
src-47d1e67874fae0e13a4670a5faa97e87d4667140.zip
sys: Disable errors for -Wunused-function on GCC.
This matches the handling of this warning on clang.
-rw-r--r--sys/conf/kern.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index a80d6211c182..9975eea6417a 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -74,6 +74,7 @@ CWARNEXTRA?= -Wno-error=address \
-Wno-error=sequence-point \
-Wno-error=shift-overflow \
-Wno-error=tautological-compare \
+ -Wno-error=unused-function \
-Wno-unused-but-set-variable
.if ${COMPILER_VERSION} >= 70100
CWARNEXTRA+= -Wno-error=stringop-overflow