Re: Shadowing declarations

Kornel Benko <[email protected]>
Newsgroups gmane.editors.lyx.devel
Message-ID <20260220161232.376289e8@admin1-desktop>
Am Fri, 20 Feb 2026 16:01:06 +0100
schrieb "Jürgen Spitzmüller" <[email protected]>:

> Am Freitag, dem 20.02.2026 um 15:20 +0100 schrieb Jürgen Spitzmüller:
> > Thanks. I am going to commit the others in chunks and ask for
> > feedback if required  
> 
> All in. CXXFLAGS=-Wshadow no longer complains.
> 

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

	Kornel

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE75EqQxV38F6szpLQb1AEVgNfRFsFAmmYeeAACgkQb1AEVgNf
RFtOOAgAtTdeLxahJFMTOuDfzbz20fTjW9QYExbU2MSG0lZfYWxSArgqBfj3Q6iR
JrFLUZzhVW+wetLuxH0GLdCsZWEb182q64wYLe4QoT8QA40s7EJ/YA91vJQgu8Zq
HY3E1pd4QSqJHFcsfXqTey7bO4Fp98/yaa86tZpIw5nJop08xsl878Qb+gZsfCzR
q8adgoiMjzuzJC3P02cr9oY6rSp1ty47kXzeSNGsf6tWzwo7cGQDGm3OoyIUN5Mj
CU7rflvZYxynNKMTXAQ15eQkMhRif/VzIyD4R93U0inf32Fl2s78j/jxLiHhiGWD
W4ztvhQVdyCUx7VqzXVMjfCC/bSWLw==
=gBb3
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.