[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 784d552 4/7: Explain why '-Wsign-promo' is no
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 784d552 4/7: Explain why '-Wsign-promo' is not enabled |
Date: |
Fri, 22 Mar 2019 05:53:36 -0400 (EDT) |
branch: master
commit 784d55240c7b55b066ddf018a57775b92eb876d3
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Explain why '-Wsign-promo' is not enabled
---
workhorse.make | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/workhorse.make b/workhorse.make
index 40cd075..382d8fd 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -462,11 +462,13 @@ gcc_common_warnings := \
-Wwrite-strings \
-Wno-parentheses \
-# Consider these later. Exceptions:
+# Warnings that are not generally useful.
#
# -Wdate-time: only for "bit-wise-identical reproducible compilations"
# -Wunsafe-loop-optimizations: incompatible with ranged for-loops
+# Consider these later:
+
postponed_gcc_common_warnings := \
-Wmissing-declarations \
-Wnull-dereference \
@@ -507,19 +509,21 @@ gcc_cxx_warnings := \
-Wsynth \
-Wuseless-cast \
-# Consider these later. Exceptions:
+# Warnings that are not generally useful.
#
+# -Wsign-promo: too many false positives--see:
+# https://lists.nongnu.org/archive/html/lmi/2019-03/msg00016.html
# -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.
+# members; but expect many false positives
+# -Wfloat-equal: too many warnings on correct code, e.g.,
+# exact comparison to zero
-postponed_gcc_cxx_warnings := \
- -Wsign-promo \
+# Consider these later:
-# Too many warnings on correct code, e.g. exact comparison to zero:
-# -Wfloat-equal \
+postponed_gcc_cxx_warnings := \
gcc_common_extra_warnings := \
-Wcast-qual \
- [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 <=
- [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, 2019/03/22
- [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