Warning in master in C++11 mode

Scott Kostyshak skostysh at lyx.org
Thu Dec 15 00:11:46 UTC 2022


On Thu, Dec 15, 2022 at 12:38:28AM +0100, Thibaut Cuvelier wrote:
> On Sat, 26 Nov 2022 at 20:33, Scott Kostyshak <scott.kostyshak at gmail.com>
> wrote:
> 
> > On Wed, Nov 09, 2022 at 10:41:17AM +0100, Jean-Marc Lasgouttes wrote:
> > > Hi,
> > >
> > > I get this warning when compiling in C++11 mode :
> > >
> > > ../../master/src/insets/InsetIndex.cpp: In member function ‘virtual void
> > > lyx::InsetIndex::docbook(lyx::XMLStream&, const lyx::OutputParams&)
> > const’:
> > > ../../master/src/insets/InsetIndex.cpp:376:6: warning: init-statement in
> > > selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
> > >   376 |  if (const vector<docstring> potential_terms =
> > > getSubentriesAsText(runparams); !potential_terms.empty()) {
> > >       |      ^~~~~
> > >
> > >
> > > Thibaut, can I leave that to you ?
> >
> > Ping to Thibaut.
> >
> 
> Hi Scott,
> 
> Sorry for the delay, I just found your email. It seems that Pavel changed
> the code at d9847302 to fix the issue.

Good to know, thanks.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20221214/7dd98650/attachment-0001.asc>


More information about the lyx-devel mailing list