commit 766ccbbd1a9927c3b093ad84ee80756fb1c00bde
Author: Scott Kostyshak <[email protected]>
Date: Sat Jun 14 00:43:18 2025 +0200
lyxbuild: enable compilation with '-pedantic'
'-pedantic' warnings are not too useful, but solving them may make
compilation smoother for compilers that LyX developers are not
testing.
I tested and it works well with both GCC and Clang. That is, it
compiles successfully now. e.g., if 231b45a0 is reverted (which
fixed a -pedantic warning), compilation with lyxbuild fails with
both GCC and Clang.
-Wnested-anon-types is excluded since it is not clear that fixing
those is worth the time.
---
development/lyx-tester/lyxbuild | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/development/lyx-tester/lyxbuild b/development/lyx-tester/lyxbuild
index 3f0ba89905..6d2035460f 100755
--- a/development/lyx-tester/lyxbuild
+++ b/development/lyx-tester/lyxbuild
@@ -524,12 +524,14 @@ else
if [ "${WERROR}" = "1" ]; then
# should be a semi-colon separated list (if more than one option).
#
- # Using '-pedantic' reports some more warnings (e.g., -Wnested-anon-types)
- # but it is not clear if '-pedantic' is useful
- # (Message-ID:<[email protected]>)
+ # '-pedantic' warnings aren't too useful, but solving them
+ # may make compilation smoother for compilers that LyX
+ # developers are not testing.
#
- # CPPFLAGS="-Werror;-Wextra;-pedantic"
- CPPFLAGS="-Werror;-Wextra"
+ CPPFLAGS="-Werror;-Wextra;-pedantic"
+ if [ "${clang}" = "1" ]; then
+ CPPFLAGS+=";-Wno-error=nested-anon-types"
+ fi
else
CPPFLAGS=""
fi
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs