commit 0c3063b7e0fa44d5a74a7842d759000a28e50fb7
Author: Scott Kostyshak <[email protected]>
Date:   Sat Jun 21 14:33:01 2025 +0200

    lyxbuild: only use -Werror, -pedantic, on 'master'
---
 development/lyx-tester/lyxbuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/development/lyx-tester/lyxbuild b/development/lyx-tester/lyxbuild
index 1f310f8e69..20eae3f0da 100755
--- a/development/lyx-tester/lyxbuild
+++ b/development/lyx-tester/lyxbuild
@@ -539,7 +539,15 @@ else
     #  CPPFLAGS+=";-Wno-error=nested-anon-types"
     #fi
 
-    CPPFLAGS="-Werror;-Wextra;-pedantic"
+    # TODO: starting with 2.5.0, also turn on with 2.5.x branch?
+    # Only use these flags on master. The only issue with this is that when we
+    # bisect a warning (e.g., from -pedantic), we need to remember to turn it
+    # on unconditionally.
+    if [ "${current_branch}" = "master" ]; then
+      CPPFLAGS="-Werror;-Wextra;-pedantic"
+    else
+      CPPFLAGS=""
+    fi
   else
     CPPFLAGS=""
   fi
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to