[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master a5ebdb6 1/3: List some extra C++ warnings for
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master a5ebdb6 1/3: List some extra C++ warnings for later consideration |
Date: |
Wed, 5 Sep 2018 09:50:09 -0400 (EDT) |
branch: master
commit a5ebdb670c8fac697b2442ff45497e8f8bbca62f
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
List some extra C++ warnings for later consideration
---
workhorse.make | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/workhorse.make b/workhorse.make
index 5edf1c1..d5b8903 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -465,6 +465,17 @@ gcc_common_warnings := \
-Wvector-operation-performance \
-Wwrite-strings \
+# Consider these later.
+#
+# -Wdate-time: only for "bit-wise-identical reproducible compilations"
+
+postponed_gcc_common_warnings := \
+ -Wdate-time \
+ -Wmissing-declarations \
+ -Wnull-dereference \
+ -Wswitch-enum \
+ -Wunsafe-loop-optimizations \
+
gcc_c_warnings := \
$(c_standard) \
$(gcc_common_warnings) \
@@ -499,6 +510,16 @@ gcc_cxx_warnings := \
-Wsynth \
-Wuseless-cast \
+# Consider these later.
+#
+# -Wsuggest*: use these only occasionally, like -Weffc++
+
+postponed_gcc_cxx_warnings := \
+ -Wnon-virtual-dtor \
+ -Wsign-promo \
+ -Wsuggest-final-methods \
+ -Wsuggest-final-types \
+
# Too many warnings on correct code, e.g. exact comparison to zero:
# -Wfloat-equal \