Description: Declare cgi_error noreturn This declares the function cgi_error with the attribute __noreturn__ to hint to GCC/Clang that the function exits the program and to prevent implicit-fallthrough warnings in the function handle_fcgi_request. Author: Peter Colberg Bug-Debian: https://bugs.debian.org/853397 Forwarded: https://github.com/gnosek/fcgiwrap/pull/43 Last-Update: 2017-08-05 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/fcgiwrap.c +++ b/fcgiwrap.c @@ -500,6 +500,7 @@ return false; } +__attribute__((__noreturn__)) static void cgi_error(const char *message, const char *reason, const char *filename) { printf("Status: %s\r\nContent-Type: text/plain\r\n\r\n%s\r\n",