summaryrefslogtreecommitdiffstats
path: root/config/gnu-warnings/error-8
diff options
context:
space:
mode:
Diffstat (limited to 'config/gnu-warnings/error-8')
-rw-r--r--config/gnu-warnings/error-89
1 files changed, 9 insertions, 0 deletions
diff --git a/config/gnu-warnings/error-8 b/config/gnu-warnings/error-8
new file mode 100644
index 0000000..36c1414
--- /dev/null
+++ b/config/gnu-warnings/error-8
@@ -0,0 +1,9 @@
+-Werror=cast-function-type
+#
+# For GCC 8, promote maybe-initialized warnings to an error. GCC 8
+# reports 0 maybe-uninitialized warnings where earlier versions
+# make many false reports. GCC 8 seems to analyze calls to static
+# in order to detect initializations that occur there. It's possible
+# that GCC 8 only performs that analysis at -O3, though.
+#
+-Werror=maybe-uninitialized