summaryrefslogtreecommitdiff
path: root/viewres.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-08 19:15:34 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-08 19:15:34 -0700
commitf846695df6b5d9543e12d1c8f04d9d7575df1ac6 (patch)
treee5f932b245cc57dfa358e06518397758ebe77e0f /viewres.c
parent74bd63d6e6768f96c3e6fc2b692a5b012edbcea3 (diff)
Pass -D_CONST_X_STRING to make libXt declare String as const char *
Clears up 32 of 38 gcc -Wdiscarded-qualifiers warnings Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'viewres.c')
-rw-r--r--viewres.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/viewres.c b/viewres.c
index 259af28..e215a97 100644
--- a/viewres.c
+++ b/viewres.c
@@ -885,7 +885,7 @@ main (int argc, char *argv[])
toplevel = XtAppInitialize (&app_con, "Viewres",
Options, XtNumber (Options),
- &argc, argv, (char **) fallback_resources,
+ &argc, argv, (String *) fallback_resources,
(ArgList) NULL, ZERO);
if (argc != 1) usage ();