lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master ae3e7881 13/13: Strengthen warnings


From: Greg Chicares
Subject: [lmi-commits] [lmi] master ae3e7881 13/13: Strengthen warnings
Date: Fri, 10 Jun 2022 21:09:39 -0400 (EDT)

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

    Strengthen warnings
---
 workhorse.make | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/workhorse.make b/workhorse.make
index fcebd615..eb9f2ba1 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -563,7 +563,7 @@ gcc_common_warnings := \
   -Wall \
   -Walloc-zero \
   -Walloca \
-  -Wcast-align \
+  -Wcast-align=strict \
   -Wcast-function-type \
   -Wconversion \
   -Wdangling-else \
@@ -573,7 +573,9 @@ gcc_common_warnings := \
   -Wduplicated-branches \
   -Wduplicated-cond \
   -Wextra \
+  -Wformat=2 \
   -Wformat-nonliteral \
+  -Wformat-overflow=2 \
   -Wformat-security \
   -Wformat-signedness \
   -Wformat-y2k \
@@ -588,14 +590,17 @@ gcc_common_warnings := \
   -Wredundant-decls \
   -Wrestrict \
   -Wshadow \
+  -Wshift-overflow=2 \
   -Wsign-compare \
   -Wstack-protector \
+  -Wstringop-overflow=4 \
   -Wswitch-enum \
   -Wtrampolines \
   -Wundef \
   -Wunreachable-code \
   -Wunused-macros \
   -Wvector-operation-performance \
+  -Wvla \
   -Wno-parentheses \
 
 # Warnings that are not generally useful.



reply via email to

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