lmi-commits
[Top][All Lists]
Advanced

[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.
 



reply via email to

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