lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master f3cc535 1/7: Revise lists of postponed compil


From: Greg Chicares
Subject: [lmi-commits] [lmi] master f3cc535 1/7: Revise lists of postponed compiler options
Date: Fri, 22 Mar 2019 05:53:35 -0400 (EDT)

branch: master
commit f3cc5359cefbf2944ce8c51a73356edaf3bc0041
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Revise lists of postponed compiler options
---
 workhorse.make | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/workhorse.make b/workhorse.make
index 895e5f4..193c79a 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -462,16 +462,15 @@ gcc_common_warnings := \
   -Wwrite-strings \
   -Wno-parentheses \
 
-# Consider these later.
+# Consider these later. Exceptions:
 #
 # -Wdate-time: only for "bit-wise-identical reproducible compilations"
+# -Wunsafe-loop-optimizations: incompatible with ranged for-loops
 
 postponed_gcc_common_warnings := \
-  -Wdate-time \
   -Wmissing-declarations \
   -Wnull-dereference \
   -Wswitch-enum \
-  -Wunsafe-loop-optimizations \
 
 gcc_c_warnings := \
   $(c_standard) \
@@ -507,15 +506,17 @@ gcc_cxx_warnings := \
   -Wsynth \
   -Wuseless-cast \
 
-# Consider these later.
+# Consider these later. Exceptions:
 #
-# -Wsuggest*: use these only occasionally, like -Weffc++
+# -Wsuggest-final-methods, and
+# -Wsuggest-final-types: use these only occasionally, like -Weffc++;
+#   work with '-Wsuggest-final-types' first, because making a class
+#   final may resolve '-Wsuggest-final-methods' suggestions for its
+#   members; but expect many false positives.
 
 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 \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]