From 0c9fae5758838fa7fff774443e3d004110264771 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Sat, 26 Mar 2022 13:47:42 +0100 Subject: Declare crash function as noreturn --- plugins-root/check_icmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index 1b6a5e17..c7e18653 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c @@ -196,7 +196,7 @@ static int handle_random_icmp(unsigned char *, struct sockaddr_storage *); static void parse_address(struct sockaddr_storage *, char *, int); static unsigned short icmp_checksum(uint16_t *, size_t); static void finish(int); -static void crash(const char *, ...); +static void crash(const char *, ...) __attribute__((noreturn)); /** external **/ extern int optind, opterr, optopt; -- cgit v1.2.3-74-g34f1