summaryrefslogtreecommitdiff
path: root/comm.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-02 11:35:43 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-02 11:35:43 -0700
commit43c19175385f98894c1633ed57ec6778e17a38a6 (patch)
tree106eae499b079accde836a99283f4f8e86daf9f7 /comm.c
parent2b838dbd23f2ae2a3ff479003b13e03563624009 (diff)
Clear 208 out of 210 -Wdiscarded-qualifiers warnings from gcc 7.3
Depends on building with a libXt version that defines String as a const char * if _CONST_X_STRING is defined. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'comm.c')
-rw-r--r--comm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/comm.c b/comm.c
index a19666b..251e9d3 100644
--- a/comm.c
+++ b/comm.c
@@ -180,7 +180,7 @@ GetClientWindow(Widget w, int *x, int *y)
/* ARGSUSED */
void
-SetCommand(Widget w, ResCommand command, char *msg)
+SetCommand(Widget w, ResCommand command, String msg)
{
XClientMessageEvent client_event;
Display * dpy = XtDisplay(w);
@@ -254,7 +254,8 @@ SetCommand(Widget w, ResCommand command, char *msg)
static void
TellUserAboutMessage(Widget label, ResCommand command)
{
- char msg[BUFSIZ], *str;
+ char msg[BUFSIZ];
+ const char *str;
switch(command) {
case LocalSendWidgetTree: