[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 55cc6938 01/24: Establish an initial blacklis
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 55cc6938 01/24: Establish an initial blacklist of clang warnings |
Date: |
Fri, 8 Jul 2022 07:11:24 -0400 (EDT) |
branch: master
commit 55cc6938f15d73b24a2ace7cdc5dcc8bb53ee6d9
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Establish an initial blacklist of clang warnings
With gcc, '-Q --help=warning' shows warnings that are not enabled, and
one whitelists them piecemeal. With clang, there's no such option, so
one enables all warnings and blacklists them piecemeal. This initial
blacklist includes every warning that clang would issue for lmi. It is
anticipated that some will be removed after changing the code.
---
compiler_clang_warnings.make | 57 +++++++++++++++++++++++++++++++++++++++++---
1 file changed, 54 insertions(+), 3 deletions(-)
diff --git a/compiler_clang_warnings.make b/compiler_clang_warnings.make
index 0f2abfa8..24e72252 100644
--- a/compiler_clang_warnings.make
+++ b/compiler_clang_warnings.make
@@ -29,20 +29,71 @@ clang_version_specific_c_warnings :=
clang_version_specific_cxx_warnings :=
# Write '-Wno' options at the end, with a rationale here.
-#
-# -Wstring-plus-int: false negatives and no true positives in lmi.
treat_warnings_as_errors := -pedantic-errors -Werror
clang_common_warnings := \
$(treat_warnings_as_errors) \
- -Wno-string-plus-int \
+ -Weverything \
+
+# Write '-Wno' options at the end, with a rationale here.
clang_c_warnings := \
$(clang_common_warnings) \
+ -Wno-float-conversion \
+ -Wno-float-equal \
+ -Wno-reserved-macro-identifier \
+ -Wno-sign-conversion \
+
+# Write '-Wno' options at the end, with a rationale here.
+#
+# -Wstring-plus-int: false negatives and no true positives in lmi.
clang_cxx_warnings := \
$(clang_common_warnings) \
+ -Wno-c++20-compat \
+ -Wno-c++98-compat-pedantic \
+ -Wno-cast-function-type \
+ -Wno-comma \
+ -Wno-conditional-uninitialized \
+ -Wno-covered-switch-default \
+ -Wno-date-time \
+ -Wno-deprecated-copy-with-dtor \
+ -Wno-disabled-macro-expansion \
+ -Wno-documentation \
+ -Wno-documentation-html \
+ -Wno-documentation-unknown-command \
+ -Wno-double-promotion \
+ -Wno-exit-time-destructors \
+ -Wno-extra-semi-stmt \
+ -Wno-float-conversion \
+ -Wno-float-equal \
+ -Wno-global-constructors \
+ -Wno-implicit-fallthrough \
+ -Wno-implicit-float-conversion \
+ -Wno-logical-op-parentheses \
+ -Wno-mismatched-tags \
+ -Wno-missing-noreturn \
+ -Wno-missing-prototypes \
+ -Wno-missing-variable-declarations \
+ -Wno-old-style-cast \
+ -Wno-padded \
+ -Wno-reserved-macro-identifier \
+ -Wno-shadow \
+ -Wno-shorten-64-to-32 \
+ -Wno-sign-conversion \
+ -Wno-string-plus-int \
+ -Wno-undefined-func-template \
+ -Wno-unknown-pragmas \
+ -Wno-unneeded-member-function \
+ -Wno-unreachable-code \
+ -Wno-unreachable-code-break \
+ -Wno-unreachable-code-return \
+ -Wno-unused-macros \
+ -Wno-unused-template \
+ -Wno-weak-template-vtables \
+ -Wno-weak-vtables \
+ -Wno-zero-as-null-pointer-constant \
# Keep version-specific warnings last, so that they override others.
- [lmi-commits] [lmi] master updated (be3de4b0 -> f8fac8dd), Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master 55cc6938 01/24: Establish an initial blacklist of clang warnings,
Greg Chicares <=
- [lmi-commits] [lmi] master 10a2b305 06/24: Remediate unreachable 'return' statements, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master 8c4089d6 02/24: Label a section for target-specific warnings, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master 5de37ebf 07/24: Don't avoid a diagnostic that no longer arises, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master 7524301d 08/24: Improve concinnity, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master fb7c030b 10/24: Work around clang '-Wno-unreachable-code-return', Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master a5e06004 14/24: Enable another clang warning, except for cgicc, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master c21d8849 12/24: Explain why certain clang warnings will remain disabled, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master e5eeed14 20/24: Explain why two more clang warnings are disabled, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master f8fac8dd 24/24: Explain why several more clang warnings are disabled, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master 06f81a9c 05/24: Refine warning pragmata, Greg Chicares, 2022/07/08