diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-06-05 10:24:15 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2022-06-05 15:57:39 +0000 |
commit | b547241728487c0dca22780241b04964f2eb37af (patch) | |
tree | 14ff2d8d0c86c3ce33bd854b0c386fd5413c499b | |
parent | c9bd01ae902d66acd8647a1cc0167bc0d246cbc8 (diff) | |
download | systemd-b547241728487c0dca22780241b04964f2eb37af.tar.gz |
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.
-rw-r--r-- | src/journal-remote/microhttpd-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/microhttpd-util.c b/src/journal-remote/microhttpd-util.c index 48e4b1414c..271e304273 100644 --- a/src/journal-remote/microhttpd-util.c +++ b/src/journal-remote/microhttpd-util.c @@ -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(); } |