Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111570683
D34147.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
764 B
Referenced Files
None
Subscribers
None
D34147.diff
View Options
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -206,6 +206,10 @@
.endif
.endif
+# GCC produces false positives for functions that switch on an
+# enum (GCC bug 87950)
+CWARNFLAGS+= -Wno-return-type
+
# GCC's own arm_neon.h triggers various warnings
.if ${MACHINE_CPUARCH} == "aarch64"
CWARNFLAGS+= -Wno-system-headers
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -75,6 +75,10 @@
CWARNEXTRA+= -Wno-address-of-packed-member \
-Wno-error=alloca-larger-than=
.endif
+
+# GCC produces false positives for functions that switch on an
+# enum (GCC bug 87950)
+CWARNFLAGS+= -Wno-return-type
.endif # gcc
# This warning is utter nonsense
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 6, 10:09 AM (11 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17012513
Default Alt Text
D34147.diff (764 B)
Attached To
Mode
D34147: Disable -Wreturn-type on GCC.
Attached
Detach File
Event Timeline
Log In to Comment