[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 \
- [lmi-commits] [lmi] master updated (47ba720 -> ad6ea6c), Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master 7a98051c0 01/10: Enable five more warnings,
Greg Chicares <=
- [lmi-commits] [lmi] master eb410dd 02/10: Remove a useless cast, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master 857ca63 03/10: Move a pragma to a more appropriate place, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master 6143242 06/10: Use a pragma to inhibit certain warnings in a single TU, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master cddcbaa 09/10: Purge three classes of warnings that are no longer needed, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master ad6ea6c 10/10: Remove pragmata rendered unnecessary by '-isystem', Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master 67e9fd6 04/10: Disable '-Wswitch-enum' in 'boost_regex.hpp', Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master 4b93a16 07/10: Consolidate and simplify '-Wno-' options for boost filesystem, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master b9adeb4 08/10: Consolidate and simplify '-Wno-' options for cgicc, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master 272d69d 05/10: Purge a class of warnings that is no longer needed, Greg Chicares, 2020/06/08