diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-15 10:42:54 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-15 11:25:32 -0700 |
commit | e379927b2d1e24d4c637fe4161dbf3f2fd98e02b (patch) | |
tree | 7392eb56e0946efbd39546151889bdb9dd67d9ec /xlogo.c | |
parent | e364be848c65d5e286cbc96ccb283b9052fc3c4a (diff) |
Use _CONST_X_STRING to make libXt declare String as const char *
Clears 22 out of 36 -Wdiscarded-qualifiers warnings from gcc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xlogo.c')
-rw-r--r-- | xlogo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -117,7 +117,7 @@ Syntax(Widget toplevel) XtSetArg(arg, XtNconnection, &connection); XtGetValues(toplevel, &arg, (Cardinal)1); if (connection) - SmcCloseConnection(connection, n, reasons); + SmcCloseConnection(connection, n, (char **) reasons); else { for (i=0; i < n; i++) printf("%s", reasons[i]); |