From: Francois-Xavier Le Bail Date: Thu, 3 Apr 2025 06:23:03 +0000 (+0200) Subject: tcpdump.c: Fix a warning when HAVE_FORK and HAVE_VFORK are not defined X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/56a7c968aa852a689d891c5bbd648c009c24fa2e tcpdump.c: Fix a warning when HAVE_FORK and HAVE_VFORK are not defined The warning was: tcpdump.c:226:13: warning: unused function 'child_cleanup' [-Wunused-function] static void child_cleanup(int); --- diff --git a/tcpdump.c b/tcpdump.c index 36c73259..d2af6e69 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -225,7 +225,9 @@ static int64_t parse_int64(const char *argname, const char *string, char **endp, int64_t minval, int64_t maxval, int base); static void (*setsignal (int sig, void (*func)(int)))(int); static void cleanup(int); +#if defined(HAVE_FORK) || defined(HAVE_VFORK) static void child_cleanup(int); +#endif static void print_version(FILE *); static void print_usage(FILE *);