[LyX/master] Kill warning for uncovered code path.

Thibaut Cuvelier tcuvelier at lyx.org
Sun Sep 19 21:45:17 UTC 2021


commit bde9b7afa0f3dad4a92cce2fbe61ef1381cf195a
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Sun Sep 19 20:10:51 2021 +0200

    Kill warning for uncovered code path.
---
 src/TextClass.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/TextClass.cpp b/src/TextClass.cpp
index 57a9f74..1b72706 100644
--- a/src/TextClass.cpp
+++ b/src/TextClass.cpp
@@ -1575,6 +1575,9 @@ bool TextClass::readFloat(Lexer & lexrc)
 		case FT_END:
 			getout = true;
 			break;
+		default:
+			LYXERR0("Unhandled value " << le << " in TextClass::readFloat.");
+			break;
 		}
 	}
 


More information about the lyx-cvs mailing list