lmi-commits
[Top][All Lists]
Advanced

[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



reply via email to

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