commit 59673863f387e74dd507c1169c9611be2e635489
Author: Scott Kostyshak <[email protected]>
Date:   Sat Aug 2 21:37:36 2025 +0200

    lyxbuild: turn off a couple of GCC warnings
    
    These do trigger warnings when using -DLYX_DEBUG=OFF.
    
    Thanks to Kornel for figuring this out.
---
 development/lyx-tester/lyxbuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/development/lyx-tester/lyxbuild b/development/lyx-tester/lyxbuild
index 7f4649722b..0a96cfa844 100755
--- a/development/lyx-tester/lyxbuild
+++ b/development/lyx-tester/lyxbuild
@@ -676,7 +676,6 @@ else
         CPPFLAGS+=";-Wlogical-op"
         CPPFLAGS+=";-Wduplicated-cond"
         CPPFLAGS+=";-Wduplicated-branches"
-        CPPFLAGS+=";-fdelete-null-pointer-checks;-Wnull-dereference"
         # TODO: ask on lyx-devel. Does not look very useful.
         # warn if you perform a cast to the same type
         CPPFLAGS+=";-Wno-useless-cast"
@@ -692,10 +691,14 @@ else
         CPPFLAGS+=";-Wdeprecated"
         CPPFLAGS+=";-Winvalid-imported-macros"
         CPPFLAGS+=";-Wmismatched-tags"
-        CPPFLAGS+=";-Wsuggest-final-types"
-        CPPFLAGS+=";-Wsuggest-final-methods"
         CPPFLAGS+=";-Wmaybe-uninitialized"
 
+        # These trigger warnings if GCC and if -DLYX_DEBUG=OFF
+        CPPFLAGS+=";-Wno-suggest-final-types"
+        CPPFLAGS+=";-Wno-suggest-final-methods"
+        # Currently 27 warnings.
+        CPPFLAGS+=";-fdelete-null-pointer-checks;-Wno-null-dereference"
+
         # I think Kornel looked at this one?
         CPPFLAGS+=";-Wno-suggest-override"
         # TODO: this one looks kind of useful, no? only 7 warnings or so.
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to