[CDMAKE] Add 'DECLSPEC_NORETURN' to 'error_exit()' (#2893)

Detected by Cppcheck: doubleFree.
This commit is contained in:
Serge Gautherie 2020-06-05 13:57:49 +02:00 committed by GitHub
parent 6808e40b3b
commit 5d88487cd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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;