[CDMAKE] Add 'DECLSPEC_NORETURN' to 'error_exit()' (#2893)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Fri, 5 Jun 2020 11:57:49 +0000 (13:57 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Jun 2020 11:57:49 +0000 (13:57 +0200)
Detected by Cppcheck: doubleFree.

modules/rosapps/applications/devutils/cdmake/cdmake.c

index d02ccc6..dd05ed5 100644 (file)
@@ -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;