[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 \
- [lmi-commits] [lmi] master updated (eebb410 -> ec7be84), Greg Chicares, 2019/03/22
- [lmi-commits] [lmi] master c01e2c3 2/7: Make certain classes 'final' as suggested by '-Wsuggest-final-types', Greg Chicares, 2019/03/22
- [lmi-commits] [lmi] master 784d552 4/7: Explain why '-Wsign-promo' is not enabled, Greg Chicares, 2019/03/22
- [lmi-commits] [lmi] master 5cb593a 3/7: Enable '-Wnon-virtual-dtor'; fix the issues it flags, Greg Chicares, 2019/03/22
- [lmi-commits] [lmi] master a1dadae 6/7: Explain why '-Wmissing-declarations' is not enabled, Greg Chicares, 2019/03/22
- [lmi-commits] [lmi] master f3cc535 1/7: Revise lists of postponed compiler options,
Greg Chicares <=
- [lmi-commits] [lmi] master ec7be84 7/7: Enable '-Wswitch-enum'; fix the issues it flags, Greg Chicares, 2019/03/22
- [lmi-commits] [lmi] master 78a4de0 5/7: Enable '-Wnull-dereference'; fix the issues it flags, Greg Chicares, 2019/03/22