From 000d4af7f036119cf19717cff105a2bd2efd01e2 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 18 Jul 2013 23:27:40 -0700 Subject: Mark static string in verify_okay_to_kill as const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes gcc warning: xkill.c: In function ‘verify_okay_to_kill’: xkill.c:371:24: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default] Signed-off-by: Alan Coopersmith --- xkill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xkill.c') diff --git a/xkill.c b/xkill.c index 1cd32cb..5a303b7 100644 --- a/xkill.c +++ b/xkill.c @@ -368,7 +368,7 @@ verify_okay_to_kill(Display *dpy, int screenno) int count = XGetPointerMapping (dpy, pointer_map, 256); int i; int button; - static char *msg = "the root window"; + const char *msg = "the root window"; Window root = RootWindow (dpy, screenno); int okay = 0; -- cgit v1.2.3