Am Samstag, 13. Oktober 2018 21:31:16 CEST schrieb Scott Kostyshak 
<skost...@lyx.org>:
> On Sun, Oct 14, 2018 at 12:41:12AM +0200, Kornel Benko wrote:
> > Am Samstag, 13. Oktober 2018 18:09:50 CEST schrieb Scott Kostyshak 
> > <skost...@lyx.org>:
> > > On Sat, Oct 13, 2018 at 11:34:04PM +0200, Kornel Benko wrote:
> > > 
> > > > The search time is O(n^2), n being the count of chars in a paragraph. 
> > > > Anyway, I was able
> > > > to restrict the search to paragraphs containing all the needed features.
> > > > So, if the search contains something with German and bold, but the 
> > > > paragraph does not,
> > > > the search will not proceed on this paragraph.
> > > 
> > > That sounds like a nice improvement!
> > > 
> > > By the way, I compile with -Werror, which gives me this:
> > > 
> > > /home/scott/lyxbuilds/master/repo/src/lyxfind.cpp:1205:8: error: 
> > > ‘std::__cxx11::string lyx::{anonymous}::LangInfo::show(int)’ defined but 
> > > not used [-Werror=unused-function]
> > > 
> > > Scott
> > > 
> > 
> > I use it for debugging. No problem.
> > It shows me, how the next part would be output.
> 
> Good to know. But do you agree that -Werror can catch bugs? Even if this
> particular warning is not important, I can no longer compile with
> -Werror so important warnings (introduced in future commits) might go
> unnoticed.
> 
> Scott
> 

I agree. OTOH, I need it while debugging. Do you know how to trick the compiler?
For now, I will remove the routine

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to