lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master ff47950 1/2: Work around '-Wnoexcept' diagnos


From: Greg Chicares
Subject: [lmi-commits] [lmi] master ff47950 1/2: Work around '-Wnoexcept' diagnostics more selectively
Date: Wed, 20 Mar 2019 19:30:18 -0400 (EDT)

branch: master
commit ff4795019ea5bf03b6ece9db9732fab135cd4f66
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Work around '-Wnoexcept' diagnostics more selectively
---
 pchfile_wx.hpp | 1 +
 workhorse.make | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pchfile_wx.hpp b/pchfile_wx.hpp
index ccd1660..5078468 100644
--- a/pchfile_wx.hpp
+++ b/pchfile_wx.hpp
@@ -39,6 +39,7 @@
 //  only 'strvararg.h:1048:19':
 #   pragma GCC diagnostic ignored "-Wdouble-promotion"
 #   pragma GCC diagnostic ignored "-Wformat-nonliteral"
+#   pragma GCC diagnostic ignored "-Wnoexcept"
 #   pragma GCC diagnostic ignored "-Wsign-conversion"
 #   pragma GCC diagnostic ignored "-Wuseless-cast"
 #endif // defined __GNUC__ && !defined __clang__
diff --git a/workhorse.make b/workhorse.make
index a3288ba..a619c9b 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -497,6 +497,7 @@ gcc_cxx_warnings := \
   -Wctor-dtor-privacy \
   -Wdelete-non-virtual-dtor \
   -Wdeprecated \
+  -Wnoexcept \
   -Wnoexcept-type \
   -Wnon-template-friend \
   -Woverloaded-virtual \
@@ -507,7 +508,6 @@ gcc_cxx_warnings := \
   -Wsynth \
 
 # Overriding C++-only warnings by adding '-Wno-' variants such as
-#   -Wno-noexcept
 #   -Wno-useless-cast
 # to $(gcc_version_specific_warnings), which is incorporated into
 # both $(CFLAGS) and $(CXXFLAGS), elicits error messages such as
@@ -519,7 +519,6 @@ gcc_cxx_warnings := \
 # options are temporarily removed from the list above.
 
 temporarily_suppressed_for_gcc_8_x := \
-  -Wnoexcept \
   -Wuseless-cast \
 
 # Consider these later.
@@ -552,6 +551,7 @@ $(wx_dependent_objects): gcc_common_extra_warnings += \
   -Wno-cast-qual \
   -Wno-double-promotion \
   -Wno-format-nonliteral \
+  -Wno-noexcept \
   -Wno-sign-conversion \
   -Wno-useless-cast \
 



reply via email to

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