From 9588a366cd0ca9b38cc545a8f70ae1f70f062ee9 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 11 Jun 2023 12:14:03 -0700 Subject: Mark global variables as "static" since there's only one source file Quiets clang -Wmissing-variable-declarations warnings Signed-off-by: Alan Coopersmith --- xev.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/xev.c b/xev.c index 5b352df..ed9bf3d 100644 --- a/xev.c +++ b/xev.c @@ -63,23 +63,23 @@ from the X Consortium. typedef unsigned long Pixel; -const char *Yes = "YES"; -const char *No = "NO"; -const char *Unknown = "unknown"; +static const char *Yes = "YES"; +static const char *No = "NO"; +static const char *Unknown = "unknown"; -const char *ProgramName; -Display *dpy; -int screen; +static const char *ProgramName; +static Display *dpy; +static int screen; -XIC xic = NULL; +static XIC xic = NULL; -Atom wm_delete_window; -Atom wm_protocols; +static Atom wm_delete_window; +static Atom wm_protocols; -Bool have_rr; -int rr_event_base, rr_error_base; +static Bool have_rr; +static int rr_event_base, rr_error_base; -Bool single_line = False; +static Bool single_line = False; enum EventMaskIndex { EVENT_MASK_INDEX_CORE, -- cgit v1.2.3