commit 246778e5f755ebf4549997902e6cd89545b4409c
Author: Scott Kostyshak <[email protected]>
Date: Thu Jul 3 12:09:12 2025 +0200
lyxbuild: categorization of more warnings
---
development/lyx-tester/lyxbuild | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/development/lyx-tester/lyxbuild b/development/lyx-tester/lyxbuild
index 9ef316559c..c2f3cb3764 100755
--- a/development/lyx-tester/lyxbuild
+++ b/development/lyx-tester/lyxbuild
@@ -589,13 +589,16 @@ else
# bisect a warning (e.g., from -pedantic), we need to remember to turn it
# on unconditionally.
if [ "${current_branch}" = "master" ]; then
- CPPFLAGS="-Werror;-Wextra;-Wextra-semi"
+ CPPFLAGS="-Werror;-Wextra"
# '-pedantic' warnings aren't too useful, but solving them
# may make compilation smoother for compilers that LyX
# developers are not testing.
CPPFLAGS+=";-pedantic"
+ # Helped for commits: 162dc505
+ CPPFLAGS+=";-Wextra-semi"
+
# fixed one instance of this (c0ccedd0)
CPPFLAGS+=";-Wmissing-include-dirs"
@@ -633,6 +636,11 @@ else
# TODO: ask on lyx-devel. Does not look very useful.
# warn if you perform a cast to the same type
CPPFLAGS+=";-Wno-useless-cast"
+ # todo: this currently gives a lot of warnings.
+ # This flag exists on clang but seems to have different behavior, and
is included
+ # by default.
+ # https://reviews.llvm.org/D119361
+ CPPFLAGS+=";-Wno-missing-declarations"
fi
# Good candidates to clean up, but not urgent.
@@ -684,14 +692,14 @@ else
CPPFLAGS+=";-Wunused-but-set-parameter"
CPPFLAGS+=";-Wwrite-strings"
- # TODO: check this one out soon.
- CPPFLAGS+=";-Wno-missing-declarations"
# TODO: check this one out soon.
CPPFLAGS+=";-Wno-redundant-decls"
- # TODO: haven't looked at yet:
- #CPPFLAGS+=";-Wno-error=undef"
- #CPPFLAGS+=";-Wno-error=reserved-macro-identifier"
+ # TODO: Gives two main warnings. I asked on lyx-devel.
+ CPPFLAGS+=";-Wno-undef"
+ # gives many warnings, I did not ask on lyx-devel yet but not sure it is
+ # useful to us.
+ CPPFLAGS+=";-Wno-reserved-macro-identifier"
# TODO: lots of warnings
# Warns when case statements fall-through. (Included with -Wextra in
GCC, not in clang)
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs