Warning in src/BiblioInfo.cpp

José Matos <[email protected]>
Newsgroups gmane.editors.lyx.devel
Message-ID <[email protected]>
Hi,
  while compiling the last updated version I got this:

src/BiblioInfo.cpp:
In function ‘void lyx::authorsToDocBookAuthorGroup(const docstring&, XMLStream&,
const Buffer&, const std::string&)’:
src/BiblioInfo.cpp:1694:21:
warning: variable ‘i’ set but not used [-Wunused-but-set-variable=]
 1694 |         for (size_t i = 0; it != en; ++it, ++i) {
      |                     ^

This seems to imply that the above line can be changed to

for (; it != en; ++it) {

FWIW I am using gcc-16 (pre-release).

Best regards,
-- 
José Abílio
-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel
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.