Am Freitag, dem 20.02.2026 um 16:12 +0100 schrieb Kornel Benko:
> The only one remainig is
> ...
> /usr2/src/lyx/lyx-git/src/tests/dummy4checklayout.cpp: In member
> function
> ‘lyx::LaTeXColors::TexColorMap lyx::LaTeXColors::getLaTeXColors()’:
> /usr2/src/lyx/lyx-git/src/tests/dummy4checklayout.cpp:55:28: error:
> declaration of
> ‘texcolormap_’ shadows a member of ‘lyx::LaTeXColors’ [-
> Werror=shadow] 55 |
> static TexColorMap texcolormap_; |                           
> ^~~~~~~~~~~~ In file
> included from /usr2/src/lyx/lyx-
> git/src/tests/dummy4checklayout.cpp:22:
> /usr2/src/lyx/lyx-git/src/LaTeXColors.h:96:21: note: shadowed
> declaration is here 96 |
>      TexColorMap texcolormap_; |                     ^~~~~~~~~~~~
> cc1plus: all warnings being treated as errors

Does the attached help (and the tests still work)?

-- 
Jürgen
diff --git a/src/tests/dummy4checklayout.cpp b/src/tests/dummy4checklayout.cpp
index 88543fee70..62ada4d139 100644
--- a/src/tests/dummy4checklayout.cpp
+++ b/src/tests/dummy4checklayout.cpp
@@ -52,8 +52,8 @@ bool LaTeXColors::isLaTeXColor(string const & /* name */)
 
 LaTeXColors::TexColorMap LaTeXColors::getLaTeXColors()
 {
-	static TexColorMap texcolormap_;
-	return(texcolormap_);
+	static TexColorMap dummy_texcolormap_;
+	return(dummy_texcolormap_);
 }
 
 LaTeXColor LaTeXColors::getLaTeXColor(string const & /* name */)
-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to