From 07f869b9024847a98d0593a3d05cff122ae7c8eb Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 8 Nov 2022 18:24:23 -0800 Subject: Declare help() and print_help() as static Resolves gcc -Wmissing-prototypes warnings Signed-off-by: Alan Coopersmith --- xprop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xprop.c b/xprop.c index 7c2bb36..7aa543f 100644 --- a/xprop.c +++ b/xprop.c @@ -1814,7 +1814,7 @@ Set_Property (Display *dpy, Window w, const char *propname, const char *value) * */ -void +static void print_help (void) { static const char *help_message = @@ -1845,7 +1845,7 @@ print_help (void) fprintf (stderr, "%s\n", help_message); } -void _X_NORETURN _X_COLD +static inline void _X_NORETURN _X_COLD help (void) { print_help(); -- cgit v1.2.3