commit f1117736726a5a3d40195e9dcc7d48343c40491a
Author: Scott Kostyshak <[email protected]>
Date: Thu Jul 3 16:04:05 2025 +0200
lyxbuild: turn on -Wundef
Both Clang and GCC now compile with the flag thanks to the fixes at
5dbd11be and 0566a02f.
---
development/lyx-tester/lyxbuild | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/development/lyx-tester/lyxbuild b/development/lyx-tester/lyxbuild
index c2f3cb3764..b3d96e9ba0 100755
--- a/development/lyx-tester/lyxbuild
+++ b/development/lyx-tester/lyxbuild
@@ -695,8 +695,12 @@ else
# TODO: check this one out soon.
CPPFLAGS+=";-Wno-redundant-decls"
- # TODO: Gives two main warnings. I asked on lyx-devel.
- CPPFLAGS+=";-Wno-undef"
+ # Helped for these commits: 5dbd11be, 0566a02f
+ #
+ # One approach for these types of warnings, suggested by Kornel,
+ # is to add a condition "if defined()". e.g.,:
+ # if defined(THE_UNDEFINED_MACRO) && THE_UNDEFINED_MACRO
+ CPPFLAGS+=";-Wundef"
# gives many warnings, I did not ask on lyx-devel yet but not sure it is
# useful to us.
CPPFLAGS+=";-Wno-reserved-macro-identifier"
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs