https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5d88487cd18058baad119…
commit 5d88487cd18058baad1199277777e148c8a1081a
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Fri Jun 5 13:57:49 2020 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Jun 5 13:57:49 2020 +0200
[CDMAKE] Add 'DECLSPEC_NORETURN' to 'error_exit()' (#2893)
Detected by Cppcheck: doubleFree.
---
modules/rosapps/applications/devutils/cdmake/cdmake.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/rosapps/applications/devutils/cdmake/cdmake.c
b/modules/rosapps/applications/devutils/cdmake/cdmake.c
index d02ccc6ef55..dd05ed51ec6 100644
--- a/modules/rosapps/applications/devutils/cdmake/cdmake.c
+++ b/modules/rosapps/applications/devutils/cdmake/cdmake.c
@@ -312,7 +312,9 @@ This function edits and displays an error message and then jumps back
to the
error exit point in main().
-----------------------------------------------------------------------------*/
-static void error_exit(const char* fmt, ...)
+static
+DECLSPEC_NORETURN
+void error_exit(const char* fmt, ...)
{
va_list arg;