[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 6c161a0 5/6: Remove redundant test for __GNUC
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 6c161a0 5/6: Remove redundant test for __GNUC__ |
Date: |
Fri, 5 Mar 2021 08:58:48 -0500 (EST) |
branch: master
commit 6c161a0dbf75c904af7082086aa40e407a0ef60a
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Remove redundant test for __GNUC__
It is unnecessary to check for GNU compiler being used for the code only
compiled when GNU Standard C++ library is, as is the case since the
parent commit.
This commit is best viewed ignoring whitespace-only changes.
---
unwind.cpp | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/unwind.cpp b/unwind.cpp
index f154ebf..ae0b429 100644
--- a/unwind.cpp
+++ b/unwind.cpp
@@ -37,16 +37,14 @@
#include <libunwind.h>
#include <typeinfo> // type_info
-#if defined __GNUC__
-# pragma GCC diagnostic push
- // Calls to low-level C functions may as well use "0" for
- // terseness instead of "nullptr".
-# pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
- // Casting dlsym objects to function pointers is allowed
- // only as a conditional extension.
-# pragma GCC diagnostic ignored "-Wconditionally-supported"
-# pragma GCC diagnostic ignored "-Wold-style-cast"
-#endif // defined __GNUC__
+#pragma GCC diagnostic push
+// Calls to low-level C functions may as well use "0" for
+// terseness instead of "nullptr".
+#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
+// Casting dlsym objects to function pointers is allowed
+// only as a conditional extension.
+#pragma GCC diagnostic ignored "-Wconditionally-supported"
+#pragma GCC diagnostic ignored "-Wold-style-cast"
// For reference, the ABI specifies this prototype:
// extern "C" void __cxa_throw
- [lmi-commits] [lmi] master updated (d8a8b60 -> 3a77860), Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 341c462 2/6: Install now required libunwind and libdw for the CI builds, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 8a96343 3/6: Link with libunwind and libdw if necessary in autotools build, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 6c161a0 5/6: Remove redundant test for __GNUC__,
Greg Chicares <=
- [lmi-commits] [lmi] master 38a2a97 1/6: Permit a particular reserved name, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 3a77860 6/6: Remove pragma GCC diagnostic push without matching pop, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 2cd4fe1 4/6: Only compile unwind.cpp when using libstdc++, Greg Chicares, 2021/03/05