commit 58723717fcb2d3ca482fdd3a6329788cd0eadc33 Author: Scott Kostyshak <skost...@lyx.org> Date: Fri Jul 4 18:56:11 2025 +0200
Fix a Clang -Wunused-macros warning GCC did not warn against this, perhaps since the macro is used in the guarded (with #if 0) code. Here is the warning from Clang that this commit fixes: src/lyxfind.cpp:1481:9: warning: macro is not used [-Wunused-macros] --- src/lyxfind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 058c32dcf1..671df07931 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -1478,7 +1478,6 @@ public: int upper; }; -#define MAXOPENED 30 class Intervall { bool isPatternString_; public: @@ -1556,6 +1555,7 @@ void Intervall::setForDefaultLang(KeyInfo const & defLang) const #if 0 // Not needed, because dpts and closes are now dynamically expanded +#define MAXOPENED 30 static void checkDepthIndex(int val) { static int maxdepthidx = MAXOPENED-2; -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs