lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 078e9a1c 16/22: Ignore certain diagnostics


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 078e9a1c 16/22: Ignore certain diagnostics
Date: Fri, 20 May 2022 22:43:42 -0400 (EDT)

branch: master
commit 078e9a1cf3df0d2919fc60cae49944de00386655
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Ignore certain diagnostics
---
 fdlibm_expm1.c | 9 +++++++++
 fdlibm_log1p.c | 7 +++++++
 2 files changed, 16 insertions(+)

diff --git a/fdlibm_expm1.c b/fdlibm_expm1.c
index a9c401bd..a193d55a 100644
--- a/fdlibm_expm1.c
+++ b/fdlibm_expm1.c
@@ -30,6 +30,15 @@
 // it's the simplest lmi header.
 #include "version.hpp"
 
+#if defined __GNUC__
+#   pragma GCC diagnostic push
+#   pragma GCC diagnostic ignored "-Wfloat-conversion"
+#   pragma GCC diagnostic ignored "-Wsign-conversion"
+#   pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#   pragma GCC diagnostic ignored "-Wunsuffixed-float-constants"
+#   pragma GCC diagnostic ignored "-Wunused-macros"
+#endif // defined __GNUC__
+
 /* @(#)fdlibm.h 1.5 04/04/22 */
 /*
  * ====================================================
diff --git a/fdlibm_log1p.c b/fdlibm_log1p.c
index bccfcb4e..e0c08084 100644
--- a/fdlibm_log1p.c
+++ b/fdlibm_log1p.c
@@ -30,6 +30,13 @@
 // it's the simplest lmi header.
 #include "version.hpp"
 
+#if defined __GNUC__
+#   pragma GCC diagnostic push
+#   pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#   pragma GCC diagnostic ignored "-Wunsuffixed-float-constants"
+#   pragma GCC diagnostic ignored "-Wunused-macros"
+#endif // defined __GNUC__
+
 /* @(#)fdlibm.h 1.5 04/04/22 */
 /*
  * ====================================================



reply via email to

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