From 63ce6839b581c09676e3dc0eaad477870bd2537c Mon Sep 17 00:00:00 2001 From: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Mon, 11 Jul 2022 11:26:03 -0700 Subject: Reduce -Wstrict-overflow= from 5 to 2 (#1872) The signal-to-noise ratio of the higher warning level is very low and the noise obscures things we should fix --- config/gnu-warnings/4.8 | 2 +- config/gnu-warnings/cxx-4.8 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/gnu-warnings/4.8 b/config/gnu-warnings/4.8 index fa678ff..102ed3e 100644 --- a/config/gnu-warnings/4.8 +++ b/config/gnu-warnings/4.8 @@ -8,7 +8,7 @@ -Wsync-nand # warning flag added for GCC >= 4.5 --Wstrict-overflow=5 +-Wstrict-overflow=2 # This warning can only be truly addressed using the gcc extension of # using D to indicate doubles (e.g., 1.23D). diff --git a/config/gnu-warnings/cxx-4.8 b/config/gnu-warnings/cxx-4.8 index 744ebdc..6f920b2 100644 --- a/config/gnu-warnings/cxx-4.8 +++ b/config/gnu-warnings/cxx-4.8 @@ -8,7 +8,7 @@ -Wsync-nand # warning flag added for GCC >= 4.5 --Wstrict-overflow=5 +-Wstrict-overflow=2 # warning flags added for GCC >= 4.6 -Wdouble-promotion -- cgit v0.12