[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master b4fcdefc 1/6: Fix defect introduced 20220525T
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master b4fcdefc 1/6: Fix defect introduced 20220525T0000Z: careless pasting |
Date: |
Wed, 29 Jun 2022 11:11:35 -0400 (EDT) |
branch: master
commit b4fcdefc873c315cddd64e98fd076cb0712215e2
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Fix defect introduced 20220525T0000Z: careless pasting
Commit 97b78cecccc52 of 20220525T0000Z popped warning pragmata
explicitly, explaining that it is sloppy not to pop after pushing;
however, the added code was sloppily pasted from 'fdlibm.hpp', so
the preprocessor conditionals for pushing and popping didn't match.
Thus, this defect was introduced while fixing a less grave defect.
---
fdlibm_expm1.c | 4 ++--
fdlibm_log1p.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/fdlibm_expm1.c b/fdlibm_expm1.c
index 85327355..e037b6c9 100644
--- a/fdlibm_expm1.c
+++ b/fdlibm_expm1.c
@@ -258,6 +258,6 @@ double fdlibm_expm1(double x)
}
return y;
}
-#if defined __cplusplus && defined LMI_GCC
+#if defined LMI_GCC
# pragma GCC diagnostic pop
-#endif // defined __cplusplus && defined LMI_GCC
+#endif // defined LMI_GCC
diff --git a/fdlibm_log1p.c b/fdlibm_log1p.c
index 4062c268..0f72cd41 100644
--- a/fdlibm_log1p.c
+++ b/fdlibm_log1p.c
@@ -210,6 +210,6 @@ double fdlibm_log1p(double x)
if(k==0) return f-(hfsq-s*(hfsq+R)); else
return k*ln2_hi-((hfsq-(s*(hfsq+R)+(k*ln2_lo+c)))-f);
}
-#if defined __cplusplus && defined LMI_GCC
+#if defined LMI_GCC
# pragma GCC diagnostic pop
-#endif // defined __cplusplus && defined LMI_GCC
+#endif // defined LMI_GCC
- [lmi-commits] [lmi] master updated (01aa1fd4 -> cf4a05dc), Greg Chicares, 2022/06/29
- [lmi-commits] [lmi] master b4fcdefc 1/6: Fix defect introduced 20220525T0000Z: careless pasting,
Greg Chicares <=
- [lmi-commits] [lmi] master 3a5c416d 5/6: Reenable a warning and resolve its cause, Greg Chicares, 2022/06/29
- [lmi-commits] [lmi] master 48a9920b 2/6: Fix defect introduced 20201007T2134Z: dead code, Greg Chicares, 2022/06/29
- [lmi-commits] [lmi] master e7a672bf 4/6: Refactor, Greg Chicares, 2022/06/29
- [lmi-commits] [lmi] master 3d6bbdc6 3/6: Fix defect introduced 20200608T2219Z: dead code, Greg Chicares, 2022/06/29
- [lmi-commits] [lmi] master cf4a05dc 6/6: Remove a class of gcc-warning exceptions, Greg Chicares, 2022/06/29