lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 7a98051c0 01/10: Enable five more warnings


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 7a98051c0 01/10: Enable five more warnings
Date: Mon, 8 Jun 2020 19:22:00 -0400 (EDT)

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

    Enable five more warnings
    
    Necessarily disabled the nullptr warning for ancient library code,
    and for files that include wx (apparently due to complex macros that
    are not disregarded with '-isystem').
---
 pchfile_wx.hpp |  1 +
 workhorse.make | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/pchfile_wx.hpp b/pchfile_wx.hpp
index 4876d67..1001a1c 100644
--- a/pchfile_wx.hpp
+++ b/pchfile_wx.hpp
@@ -50,6 +50,7 @@
 #   pragma GCC diagnostic ignored "-Wnoexcept"
 #   pragma GCC diagnostic ignored "-Wsign-conversion"
 #   pragma GCC diagnostic ignored "-Wuseless-cast"
+#   pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
 #endif // defined __GNUC__ && !defined __clang__
 
 #if defined LMI_COMPILER_USES_PCH && !defined LMI_IGNORE_PCH
diff --git a/workhorse.make b/workhorse.make
index da12e5a..cdbde8d 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -503,21 +503,26 @@ gcc_cxx_warnings := \
   -Wc++11-compat \
   -Wc++14-compat \
   -Wc++1z-compat \
+  -Wcatch-value=3 \
   -Wconditionally-supported \
   -Wctor-dtor-privacy \
   -Wdelete-non-virtual-dtor \
   -Wdeprecated \
+  -Wextra-semi \
   -Wnoexcept \
   -Wnoexcept-type \
   -Wnon-template-friend \
   -Wnon-virtual-dtor \
   -Woverloaded-virtual \
+  -Wplacement-new=2 \
   -Wpmf-conversions \
   -Wregister \
   -Wreorder \
   -Wstrict-null-sentinel \
+  -Wsuggest-override \
   -Wsynth \
   -Wuseless-cast \
+  -Wzero-as-null-pointer-constant \
 
 # Warnings that are not generally useful.
 #
@@ -579,6 +584,7 @@ operations_posix_windows.o: gcc_common_extra_warnings += 
-Wno-unused-parameter
 $(boost_filesystem_objects): gcc_common_extra_warnings += \
   -Wno-deprecated-declarations \
   -Wno-unused-macros \
+  -Wno-zero-as-null-pointer-constant \
 
 $(boost_regex_objects): gcc_common_extra_warnings += \
   -Wno-conversion \
@@ -589,6 +595,7 @@ $(boost_regex_objects): gcc_common_extra_warnings += \
   -Wno-switch-enum \
   -Wno-unused-macros \
   -Wno-useless-cast \
+  -Wno-zero-as-null-pointer-constant \
 
 boost_dependent_objects := \
   $(boost_regex_objects) \
@@ -599,6 +606,9 @@ $(boost_dependent_objects): gcc_common_extra_warnings += \
   -Wno-switch-enum \
   -Wno-unused-local-typedefs
 
+$(cgicc_objects): gcc_common_extra_warnings += \
+  -Wno-zero-as-null-pointer-constant \
+
 expression_template_0_test.o: gcc_common_extra_warnings += \
   -Wno-conversion \
   -Wno-switch-enum \



reply via email to

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