lmi-commits
[Top][All Lists]
Advanced

[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) \



reply via email to

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