[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 931cce6f 6/6: Explain why several clang warni
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 931cce6f 6/6: Explain why several clang warnings are disabled |
Date: |
Sat, 9 Jul 2022 18:28:39 -0400 (EDT) |
branch: master
commit 931cce6f22776ab8a5f4daa28ee4912f46cc6186
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Explain why several clang warnings are disabled
---
compiler_clang_warnings.make | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/compiler_clang_warnings.make b/compiler_clang_warnings.make
index badd3fca..5ecde9e4 100644
--- a/compiler_clang_warnings.make
+++ b/compiler_clang_warnings.make
@@ -39,7 +39,7 @@ clang_common_warnings := \
# Write '-Wno' options at the end, with a rationale here.
# -Wfloat-equal: too many false positives, e.g., 0.0 == X
-### -Wsign-conversion
+# -Wsign-conversion: too many false positives, e.g., v[signed]
clang_c_warnings := \
$(clang_common_warnings) \
@@ -59,19 +59,19 @@ clang_c_warnings := \
# -Wdocumentation: warns about comments
# -Wdocumentation-html: warns about comments
# -Wdocumentation-unknown-command: warns about comments
-### -Wdouble-promotion
-### -Wexit-time-destructors
+# -Wdouble-promotion: not actually useful
+# -Wexit-time-destructors: for analysis only--all positives are false
### -Wextra-semi-stmt
# -Wfloat-conversion: false positives for double-to-bool conversion
# -Wfloat-equal: too many false positives, e.g., 0.0 == X
-### -Wglobal-constructors
+# -Wglobal-constructors: for analysis only--all positives are false
# -Wlogical-op-parentheses: && is multiplicative; || is additive
# -Wmismatched-tags: stylistic freedom--not a defect
# -Wmissing-noreturn: use occasionally; beware false positives
### -Wmissing-prototypes
### -Wmissing-variable-declarations
# -Wpadded: useful only for low-level work
-### -Wsign-conversion
+# -Wsign-conversion: too many false positives, e.g., v[signed]
# -Wstring-plus-int: false negatives and no true positives in lmi
### -Wundefined-func-template
# -Wunreachable-code-break: pleonastic 'break' adds clarity
- [lmi-commits] [lmi] master updated (68095897 -> 931cce6f), Greg Chicares, 2022/07/09
- [lmi-commits] [lmi] master 8b387bdc 1/6: Add "[[noreturn]]" in a few places, Greg Chicares, 2022/07/09
- [lmi-commits] [lmi] master 9b175313 2/6: Enable '-Wconditional-uninitialized' for clang, Greg Chicares, 2022/07/09
- [lmi-commits] [lmi] master 931cce6f 6/6: Explain why several clang warnings are disabled,
Greg Chicares <=
- [lmi-commits] [lmi] master d8bb7cb4 5/6: Repeat less, Greg Chicares, 2022/07/09
- [lmi-commits] [lmi] master 6f740381 3/6: Explain why '-Wfloat-conversion' is disabled for clang, Greg Chicares, 2022/07/09
- [lmi-commits] [lmi] master f7f9c1e7 4/6: Enable '-Wfloat-conversion' for clang: C only, Greg Chicares, 2022/07/09