[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master c21d8849 12/24: Explain why certain clang war
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master c21d8849 12/24: Explain why certain clang warnings will remain disabled |
Date: |
Fri, 8 Jul 2022 07:11:26 -0400 (EDT) |
branch: master
commit c21d8849fc20ae27f3c989cd743be74de5f55a58
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Explain why certain clang warnings will remain disabled
---
compiler_clang_warnings.make | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/compiler_clang_warnings.make b/compiler_clang_warnings.make
index 6244f074..91c8c049 100644
--- a/compiler_clang_warnings.make
+++ b/compiler_clang_warnings.make
@@ -48,6 +48,9 @@ clang_c_warnings := \
# Write '-Wno' options at the end, with a rationale here.
#
# -Wstring-plus-int: false negatives and no true positives in lmi.
+# -Wunreachable-code-break: pleonastic 'break' adds clarity.
+# -Wweak-template-vtables: same as '-Wweak-vtables'.
+# -Wweak-vtables: it's better to let the linker remove duplicates.
clang_cxx_warnings := \
$(clang_common_warnings) \
@@ -86,14 +89,11 @@ clang_cxx_warnings := \
-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 \
# Target-specific modifications.
- [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, 2022/07/08
- [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 <=
- [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
- [lmi-commits] [lmi] master 32145870 03/24: Correct an inconsistency in a comment, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master 5334fa49 04/24: Prefer 'nullptr' to '0', Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master e7ef946d 11/24: Disable a warning only for cgicc, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master e97c7ec6 17/24: Enable another clang warning, with one pragmatic exception, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master b5cee829 18/24: Explain why '-Wpadded' is disabled for clang, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master 9a551769 22/24: Disable floating-point comparison warning, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master bb0434c3 09/24: Avoid clang warning on silliness, Greg Chicares, 2022/07/08