Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153386820
D56412.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D56412.diff
View Options
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -51,46 +51,39 @@
.endif # clang
.if ${COMPILER_TYPE} == "gcc"
-# Catch-all for all the things that are in our tree, but for which we're
-# not yet ready for this compiler.
NO_WUNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
+NO_WINFINITE_RECURSION= -Wno-infinite-recursion
+NO_WSTRINGOP_OVERREAD= -Wno-stringop-overread
+# Don't make a lot of these warnings errors since the tree isn't
+# ready for it, or they produce too many false positives that
+# can't be fixed.
CWARNEXTRA?= -Wno-error=address \
-Wno-error=aggressive-loop-optimizations \
+ -Wno-error=alloca-larger-than= \
-Wno-error=array-bounds \
-Wno-error=attributes \
-Wno-error=cast-qual \
-Wno-error=enum-compare \
-Wno-error=int-to-pointer-cast \
-Wno-error=maybe-uninitialized \
+ -Wno-error=memset-elt-size \
-Wno-error=misleading-indentation \
+ -Wno-error=nonnull \
-Wno-error=nonnull-compare \
-Wno-error=overflow \
+ -Wno-error=packed-not-aligned \
-Wno-error=pointer-to-int-cast \
-Wno-error=sequence-point \
-Wno-error=shift-overflow \
+ -Wno-error=stringop-overflow \
-Wno-error=tautological-compare \
-Wno-error=unused-function
-.if ${COMPILER_VERSION} >= 70100
-CWARNEXTRA+= -Wno-error=stringop-overflow
-.endif
-.if ${COMPILER_VERSION} >= 70200
-CWARNEXTRA+= -Wno-error=memset-elt-size
-.endif
-.if ${COMPILER_VERSION} >= 80000
-CWARNEXTRA+= -Wno-error=packed-not-aligned
-.endif
-.if ${COMPILER_VERSION} >= 90100
+
+# These warnings aren't useful, so suppress them.
CWARNEXTRA+= -Wno-address-of-packed-member \
-Wno-alloc-size-larger-than \
- -Wno-error=alloca-larger-than=
-.if ${COMPILER_VERSION} >= 120100
-CWARNEXTRA+= -Wno-error=nonnull \
-Wno-dangling-pointer \
-Wno-zero-length-bounds
-NO_WINFINITE_RECURSION= -Wno-infinite-recursion
-NO_WSTRINGOP_OVERREAD= -Wno-stringop-overread
-.endif
-.endif
# GCC produces false positives for functions that switch on an
# enum (GCC bug 87950)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 8:57 PM (5 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31610007
Default Alt Text
D56412.diff (2 KB)
Attached To
Mode
D56412: i386+gcc: gcc12 is the minimum version
Attached
Detach File
Event Timeline
Log In to Comment