Fix gcc-12 warning

From Kornel:

>  /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.
This commit is contained in:
Scott Kostyshak 2022-09-24 14:24:26 -04:00
parent bbaebd15ce
commit 725168baba

View File

@ -1927,7 +1927,8 @@ FontSpan Paragraph::fontSpan(pos_type pos) const
// This should not happen, but if so, we take no chances. // This should not happen, but if so, we take no chances.
LYXERR0("Paragraph::fontSpan: position not found in fontinfo table!"); LYXERR0("Paragraph::fontSpan: position not found in fontinfo table!");
LASSERT(false, return FontSpan(pos, pos)); LASSERT(false, /**/);
return FontSpan(pos, pos);
} }