[Scummvm-git-logs] scummvm master -> 5a63845005ee77b35c97fdd8b2dccb59f0dcd3b7

sluicebox noreply at scummvm.org
Tue Dec 26 19:10:28 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5a63845005 M4: Declare error functions NORETURN


Commit: 5a63845005ee77b35c97fdd8b2dccb59f0dcd3b7
    https://github.com/scummvm/scummvm/commit/5a63845005ee77b35c97fdd8b2dccb59f0dcd3b7
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2023-12-26T11:09:19-08:00

Commit Message:
M4: Declare error functions NORETURN

Should fix false positives in static analysis tools

Changed paths:
    engines/m4/core/errors.h


diff --git a/engines/m4/core/errors.h b/engines/m4/core/errors.h
index 3fda36d99f1..0647dffe12d 100644
--- a/engines/m4/core/errors.h
+++ b/engines/m4/core/errors.h
@@ -22,6 +22,7 @@
 #ifndef M4_CORE_ERRORS_H
 #define M4_CORE_ERRORS_H
 
+#include "common/scummsys.h"
 #include "m4/m4_types.h"
 
 namespace M4 {
@@ -29,8 +30,8 @@ namespace M4 {
 #define FL __FILE__,__LINE__
 #define ERROR_FILE "error.m4"
 
-void error_show(const char *filename, uint32 line, quadchar errorcode, const char *fmt, ...);
-void error_show(const char *filename, uint32 line, quadchar errorcode);
+void NORETURN_PRE error_show(const char *filename, uint32 line, quadchar errorcode, const char *fmt, ...) NORETURN_POST;
+void NORETURN_PRE error_show(const char *filename, uint32 line, quadchar errorcode) NORETURN_POST;
 void error_look_up(quadchar errorcode, char *result_string);
 
 } // namespace M4




More information about the Scummvm-git-logs mailing list