[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 3579888f 1/5: Turn off an unwanted warning
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 3579888f 1/5: Turn off an unwanted warning |
Date: |
Sun, 12 Jun 2022 21:24:26 -0400 (EDT) |
branch: master
commit 3579888fd39415fdd95923ee74df0c505f20e4ff
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Turn off an unwanted warning
---
fdlibm_expm1.c | 1 -
fdlibm_log1p.c | 1 -
workhorse.make | 7 ++++++-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/fdlibm_expm1.c b/fdlibm_expm1.c
index 6d410229..5e05e10f 100644
--- a/fdlibm_expm1.c
+++ b/fdlibm_expm1.c
@@ -31,7 +31,6 @@
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wfloat-conversion"
# pragma GCC diagnostic ignored "-Wsign-conversion"
-# pragma GCC diagnostic ignored "-Wunsuffixed-float-constants"
#endif // defined LMI_GCC
/* @(#)s_expm1.c 1.5 04/04/22 */
diff --git a/fdlibm_log1p.c b/fdlibm_log1p.c
index f53610d1..4062c268 100644
--- a/fdlibm_log1p.c
+++ b/fdlibm_log1p.c
@@ -30,7 +30,6 @@
#if defined LMI_GCC
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wsign-conversion"
-# pragma GCC diagnostic ignored "-Wunsuffixed-float-constants"
#endif // defined LMI_GCC
/* @(#)s_log1p.c 1.3 95/01/18 */
diff --git a/workhorse.make b/workhorse.make
index c30a840b..da979e72 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -635,8 +635,13 @@ gcc_c_warnings := \
-Wold-style-definition \
-Wstrict-prototypes \
-Wtraditional-conversion \
- -Wunsuffixed-float-constants \
-Wwrite-strings \
+ -Wno-unsuffixed-float-constants \
+
+# Warnings that are not generally useful.
+#
+# -Wunsuffixed-float-constants: a migration aid to support an eventual
+# FLOAT_CONST_DECIMAL64 pragma, but only a nuisance for now
gcc_cxx_warnings := \
$(cxx_standard) \