diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-02 11:35:43 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-02 11:35:43 -0700 |
commit | 43c19175385f98894c1633ed57ec6778e17a38a6 (patch) | |
tree | 106eae499b079accde836a99283f4f8e86daf9f7 /comm.c | |
parent | 2b838dbd23f2ae2a3ff479003b13e03563624009 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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: |