]> git.lyx.org Git - lyx.git/commitdiff
Improve coverity modeling
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 9 Sep 2024 15:50:01 +0000 (17:50 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 9 Sep 2024 15:50:01 +0000 (17:50 +0200)
This tells coverity that these functions terminate the program.

development/coverity_modeling.cpp

index 1e1d315b6ca976a65dc980e49e18f20b5e71673f..984464655a88e49535bcd45c2439c5c5cd30dc3e 100644 (file)
@@ -11,6 +11,12 @@ void doAssertWithCallstack(bool value)
 }
 
 
+void doAssertStatic(char const * expr, char const * file, long line)
+{
+       __coverity_panic__();
+}
+
+
 // Tell coverity that this function always exits
 void doAppErr(char const * expr, char const * file, long line)
 {
@@ -23,4 +29,11 @@ void lyx_exit(int exit_code)
        __coverity_panic__();
 }
 
+
+void lyxbreaker(void const * data, const char * hint, int size)
+{
+       __coverity_panic__();
+}
+
+
 }