[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master bddd7c3 3/3: Improve gcc warning options
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master bddd7c3 3/3: Improve gcc warning options |
Date: |
Mon, 21 Sep 2020 13:19:15 -0400 (EDT) |
branch: master
commit bddd7c3d9960fc7cdba99e2f108a99c3366ae36c
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Improve gcc warning options
'-Winit-self' and '-Wwrite-strings' are already implied for C++. See:
https://lists.nongnu.org/archive/html/lmi/2020-08/msg00038.html
---
workhorse.make | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/workhorse.make b/workhorse.make
index 3448bc8..8187553 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -457,7 +457,6 @@ gcc_common_warnings := \
-Wformat-signedness \
-Wformat-y2k \
-Wimport \
- -Winit-self \
-Winvalid-pch \
-Wlogical-op \
-Wmissing-include-dirs \
@@ -476,7 +475,6 @@ gcc_common_warnings := \
-Wunreachable-code \
-Wunused-macros \
-Wvector-operation-performance \
- -Wwrite-strings \
-Wno-parentheses \
# Warnings that are not generally useful.
@@ -494,6 +492,7 @@ gcc_c_warnings := \
$(gcc_common_warnings) \
-Wbad-function-cast \
-Wc++-compat \
+ -Winit-self \
-Wjump-misses-init \
-Wmissing-prototypes \
-Wnested-externs \
@@ -501,6 +500,7 @@ gcc_c_warnings := \
-Wstrict-prototypes \
-Wtraditional-conversion \
-Wunsuffixed-float-constants \
+ -Wwrite-strings \
gcc_cxx_warnings := \
$(cxx_standard) \