[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.
- [lmi-commits] [lmi] master updated (ceb0ac3b -> 01aa1fd4), Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master 984ccf07 3/9: Expunge useless history, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master a3571e5d 4/9: Remove a dependency on an ancient gcc version, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master d20268b2 5/9: Remove another dependency on an ancient gcc version, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master 2f9d615f 8/9: Move a definition, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master 9f2184d3 1/9: Record some handy commands, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master 7947ec4e 2/9: Distinguish dialect options from warnings,
Greg Chicares <=
- [lmi-commits] [lmi] master 01aa1fd4 9/9: Factor out gcc warnings, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master be9c647f 6/9: Prepare for more transplantation, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master 0e74982c 7/9: Transplant ascertainment of compiler version, Greg Chicares, 2022/06/28