lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 22755f08 3/3: Enable even more warnings


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 22755f08 3/3: Enable even more warnings
Date: Mon, 13 Jun 2022 13:20:11 -0400 (EDT)

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

    Enable even more warnings
    
    '-Wunsafe-loop-optimizations' is now compatible with ranged for-loops.
---
 workhorse.make | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/workhorse.make b/workhorse.make
index bc3f7e4f..f9d8e048 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -576,6 +576,7 @@ gcc_common_warnings := \
   -Wformat-overflow=2 \
   -Wformat-security \
   -Wformat-signedness \
+  -Wformat-truncation \
   -Wformat-y2k \
   -Wimport \
   -Winit-self \
@@ -592,11 +593,13 @@ gcc_common_warnings := \
   -Wshift-overflow=2 \
   -Wsign-compare \
   -Wstack-protector \
+  -Wstrict-overflow \
   -Wstringop-overflow=4 \
   -Wswitch-enum \
   -Wtrampolines \
   -Wundef \
   -Wunreachable-code \
+  -Wunsafe-loop-optimizations \
   -Wunused-macros \
   -Wvector-operation-performance \
   -Wvla \
@@ -606,7 +609,6 @@ gcc_common_warnings := \
   -Wno-missing-declarations \
   -Wno-parentheses \
   -Wno-switch-default \
-  -Wno-unsafe-loop-optimizations \
 
 # Warnings that are not generally useful.
 #
@@ -619,7 +621,6 @@ gcc_common_warnings := \
 # -Wparentheses: its diagnostics are beyond pedantic
 # -Wswitch-default: false positives for switches on enums that
 #   include all cases (verified by -Wswitch-enum)
-# -Wunsafe-loop-optimizations: incompatible with ranged for-loops
 
 # Consider these later:
 postponed_gcc_common_warnings := \



reply via email to

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