From 43c19175385f98894c1633ed57ec6778e17a38a6 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 2 Jun 2019 11:35:43 -0700 Subject: 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 --- comm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'comm.c') 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: -- cgit v1.2.3