shared/microhttp-util: silence gcc warning
../src/journal-remote/microhttpd-util.c: In function ‘check_permissions’:
../src/journal-remote/microhttpd-util.c:301:5: error: function might be candidate for attribute ‘noreturn’ [-Werror=suggest-attribute=noreturn]
301 | int check_permissions(struct MHD_Connection *connection, int *code, char **hostname) {
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Fixes #23630.
This commit is contained in:
committed by
Frantisek Sumsal
parent
c9bd01ae90
commit
b547241728
@@ -298,7 +298,7 @@ int check_permissions(struct MHD_Connection *connection, int *code, char **hostn
|
||||
}
|
||||
|
||||
#else
|
||||
int check_permissions(struct MHD_Connection *connection, int *code, char **hostname) {
|
||||
_noreturn_ int check_permissions(struct MHD_Connection *connection, int *code, char **hostname) {
|
||||
assert_not_reached();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user