diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-18 23:27:40 -0700 |
---|---|---|
committer | Sung-Jin Park <sj76.park@samsung.com> | 2013-09-03 00:03:04 -0400 |
commit | 58ab9f0af6a055641f66af19666b4d3b8bda9b05 (patch) | |
tree | 483b902e421eb7628ed3918e4a873621b3cbcf03 | |
parent | d59104ab9ff7a3dee8c30116ec4b922365cacb0d (diff) | |
download | xkill-58ab9f0af6a055641f66af19666b4d3b8bda9b05.tar.gz xkill-58ab9f0af6a055641f66af19666b4d3b8bda9b05.tar.bz2 xkill-58ab9f0af6a055641f66af19666b4d3b8bda9b05.zip |
Mark static string in verify_okay_to_kill as const
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]
Change-Id: Ie5bd3c46b7af2b4857c76de5a631480c4460301d
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xkill.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |