diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-10-04 10:32:11 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-10-04 10:32:11 +0300 |
commit | 85db559ed6a0df39587cad4d055020a84d18e04b (patch) | |
tree | cc493eee85f14f023d1700fab041c1aaef0cf14d /src/testcurl/test_toolarge.c | |
parent | 22aff9e263b1e753715c8417cd3ee61b61768104 (diff) | |
download | libmicrohttpd-85db559ed6a0df39587cad4d055020a84d18e04b.tar.gz libmicrohttpd-85db559ed6a0df39587cad4d055020a84d18e04b.zip |
Added support for "noreturn" function declaration.
It should help static analyzer to properly detect code paths.
Diffstat (limited to 'src/testcurl/test_toolarge.c')
-rw-r--r-- | src/testcurl/test_toolarge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcurl/test_toolarge.c b/src/testcurl/test_toolarge.c index f81827e7..70b37ff9 100644 --- a/src/testcurl/test_toolarge.c +++ b/src/testcurl/test_toolarge.c | |||
@@ -113,7 +113,7 @@ | |||
113 | #endif | 113 | #endif |
114 | 114 | ||
115 | 115 | ||
116 | static void | 116 | _MHD_NORETURN static void |
117 | _externalErrorExit_func (const char *errDesc, const char *funcName, int lineNum) | 117 | _externalErrorExit_func (const char *errDesc, const char *funcName, int lineNum) |
118 | { | 118 | { |
119 | if ((NULL != errDesc) && (0 != errDesc[0])) | 119 | if ((NULL != errDesc) && (0 != errDesc[0])) |
@@ -137,7 +137,7 @@ _externalErrorExit_func (const char *errDesc, const char *funcName, int lineNum) | |||
137 | 137 | ||
138 | static char libcurl_errbuf[CURL_ERROR_SIZE] = ""; | 138 | static char libcurl_errbuf[CURL_ERROR_SIZE] = ""; |
139 | 139 | ||
140 | static void | 140 | _MHD_NORETURN static void |
141 | _libcurlErrorExit_func (const char *errDesc, const char *funcName, int lineNum) | 141 | _libcurlErrorExit_func (const char *errDesc, const char *funcName, int lineNum) |
142 | { | 142 | { |
143 | if ((NULL != errDesc) && (0 != errDesc[0])) | 143 | if ((NULL != errDesc) && (0 != errDesc[0])) |
@@ -159,7 +159,7 @@ _libcurlErrorExit_func (const char *errDesc, const char *funcName, int lineNum) | |||
159 | } | 159 | } |
160 | 160 | ||
161 | 161 | ||
162 | static void | 162 | _MHD_NORETURN static void |
163 | _mhdErrorExit_func (const char *errDesc, const char *funcName, int lineNum) | 163 | _mhdErrorExit_func (const char *errDesc, const char *funcName, int lineNum) |
164 | { | 164 | { |
165 | if ((NULL != errDesc) && (0 != errDesc[0])) | 165 | if ((NULL != errDesc) && (0 != errDesc[0])) |