Am Sat, 24 Sep 2022 14:51:17 -0400
schrieb Scott Kostyshak <skost...@lyx.org>:

> On Wed, Sep 21, 2022 at 08:10:54PM +0200, Kornel Benko wrote:
> > 
> > /usr2/src/lyx/lyx-git/src/Paragraph.cpp:1931:1: warning: control reaches 
> > end of
> > non-void function [-Wreturn-type]
> > 
> > This is with gcc-12, compiled in debug mode.  
> 
> It makes sense if the warning is only given in debug mode since I guess
> the compiler cannot tell for sure that the control flow will never get
> past the LASSERT. I wonder if it is because the required inlining
> doesn't happen or a different reason?
> 
> In any case, does the attached patch fix it?
> 
> Is that the only warning you get with GCC-12 or are there more?
> 
> Scott

No warning now (as expected).

        Kornel

Attachment: pgpgpGECdr3Ca.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to