From 725168baba0b1baba0b519a4069b88a08db5d239 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Sat, 24 Sep 2022 14:24:26 -0400 Subject: [PATCH] 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. --- src/Paragraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 86e5b0ec85..4ce94415f7 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1927,7 +1927,8 @@ FontSpan Paragraph::fontSpan(pos_type pos) const // This should not happen, but if so, we take no chances. LYXERR0("Paragraph::fontSpan: position not found in fontinfo table!"); - LASSERT(false, return FontSpan(pos, pos)); + LASSERT(false, /**/); + return FontSpan(pos, pos); }