mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-20 14:03:39 +03:00
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:
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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user