[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 1018709f 07/17: Move a warning option to its
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 1018709f 07/17: Move a warning option to its proper place |
Date: |
Sat, 2 Jul 2022 21:42:14 -0400 (EDT) |
branch: master
commit 1018709f7d553bcf5792404d3daedfc4eae5554e
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Move a warning option to its proper place
---
compiler_clang.make | 6 +-----
compiler_clang_warnings.make | 5 +++++
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/compiler_clang.make b/compiler_clang.make
index 3bf6e19d..3130800f 100644
--- a/compiler_clang.make
+++ b/compiler_clang.make
@@ -150,11 +150,7 @@ CFLAGS = $(optimization_flag)
REQUIRED_CXXFLAGS = -std=c++20 $(CXX_WARNINGS) $(REQUIRED_COMPILER_FLAGS)
-# Write '-Wno' options at the end, with a rationale here.
-#
-# -Wstring-plus-int: false negatives and no true positives in lmi.
-
-CXXFLAGS = $(optimization_flag) -Wno-string-plus-int
+CXXFLAGS = $(optimization_flag)
# Linker flags.
diff --git a/compiler_clang_warnings.make b/compiler_clang_warnings.make
index a6583410..0f2abfa8 100644
--- a/compiler_clang_warnings.make
+++ b/compiler_clang_warnings.make
@@ -28,10 +28,15 @@ $(srcdir)/compiler_clang_warnings.make:: ;
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 \
clang_c_warnings := \
$(clang_common_warnings) \
- [lmi-commits] [lmi] master updated (61ff010d -> ec379f81), Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 4d58421b 05/17: Increase concinnity, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 8429817f 04/17: Increase concinnity, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 1018709f 07/17: Move a warning option to its proper place,
Greg Chicares <=
- [lmi-commits] [lmi] master f708d833 12/17: Override flags for product files more appropriately, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master acfa77b0 08/17: Simplify, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 6896ec57 03/17: Explain uniformly why pointer-{compare, subtract} aren't used, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 05ef210f 01/17: Remove obsolete '.patch' files, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master be64abf0 11/17: Establish general compiler flags earlier, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 0e3c2fbb 02/17: Don't let makefiles end in an empty line, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master adcaef29 06/17: Establish a framework for clang warnings, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master e4abb6e1 14/17: Don't specify nonempty $CFLAGS or $CXXFLAGS, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master ec379f81 17/17: Use an updated XRC schema, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 89e37e40 13/17: Resolve a latent makefile issue, Greg Chicares, 2022/07/02