lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 7947ec4e 2/9: Distinguish dialect options fro


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 7947ec4e 2/9: Distinguish dialect options from warnings
Date: Tue, 28 Jun 2022 22:26:46 -0400 (EDT)

branch: master
commit 7947ec4e069fb1a30483141cd0bb632b4c818546
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Distinguish dialect options from warnings
---
 compiler_gcc.make | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/compiler_gcc.make b/compiler_gcc.make
index e103cce2..e106236c 100644
--- a/compiler_gcc.make
+++ b/compiler_gcc.make
@@ -120,7 +120,7 @@ endif
 
 tutelary_flag :=
 
-# Dialect and warning options for gcc.
+# Dialect options for gcc.
 
 # The default '-fno-rounding-math' means something like
 #   #pragma STDC FENV ACCESS OFF
@@ -130,6 +130,8 @@ tutelary_flag :=
 c_standard   := -fno-ms-extensions -frounding-math -fsignaling-nans -std=c99
 cxx_standard := -fno-ms-extensions -frounding-math -fsignaling-nans -std=c++20
 
+# Warnings for gcc.
+
 gcc_version_specific_c_warnings :=
 gcc_version_specific_cxx_warnings :=
 
@@ -264,7 +266,6 @@ postponed_gcc_common_warnings := \
 #   FLOAT_CONST_DECIMAL64 pragma, but only a nuisance for now
 
 gcc_c_warnings := \
-  $(c_standard) \
   $(gcc_common_warnings) \
   -Wbad-function-cast \
   -Wc++-compat \
@@ -298,7 +299,6 @@ gcc_c_warnings := \
 # -Wvirtual-inheritance: forbids a useful feature
 
 gcc_cxx_warnings := \
-  $(cxx_standard) \
   $(gcc_common_warnings) \
   -Wc++11-compat \
   -Wc++14-compat \
@@ -549,11 +549,13 @@ endif
 # C compiler flags.
 
 REQUIRED_CFLAGS = \
+  $(c_standard) \
   $(C_WARNINGS) \
 
 # C++ compiler flags.
 
 REQUIRED_CXXFLAGS = \
+  $(cxx_standard) \
   $(CXX_WARNINGS) \
 
 # Archiver flags.



reply via email to

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