summaryrefslogtreecommitdiff
path: root/xeyes.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2020-03-23 08:55:53 -0700
committerKeith Packard <keithp@keithp.com>2020-03-29 13:47:14 -0700
commit7517441ffa1aecb6f565217149762267d145e11e (patch)
treed76e119e62bb1fbb297edc607235548e7baf2f39 /xeyes.c
parent420c2d8517246c9e422739cadb7acb29e35a3bed (diff)
Clean up compiler warnings
Add (char *) casts to initializers in Xt structs. Remove unused variables. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'xeyes.c')
-rw-r--r--xeyes.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/xeyes.c b/xeyes.c
index 1c1f4b7..5fea24b 100644
--- a/xeyes.c
+++ b/xeyes.c
@@ -68,20 +68,20 @@ usage(void)
pass over the remaining options after XtParseCommand is let loose. */
static XrmOptionDescRec options[] = {
-{"-outline", "*eyes.outline", XrmoptionSepArg, NULL},
-{"-center", "*eyes.center", XrmoptionSepArg, NULL},
-{"-backing", "*eyes.backingStore", XrmoptionSepArg, NULL},
-{"-shape", "*eyes.shapeWindow", XrmoptionNoArg, "TRUE"},
-{"+shape", "*eyes.shapeWindow", XrmoptionNoArg, "FALSE"},
+{(char *)"-outline", (char *)"*eyes.outline", XrmoptionSepArg, NULL},
+{(char *)"-center", (char *)"*eyes.center", XrmoptionSepArg, NULL},
+{(char *)"-backing", (char *)"*eyes.backingStore", XrmoptionSepArg, NULL},
+{(char *)"-shape", (char *)"*eyes.shapeWindow", XrmoptionNoArg, (char *)"TRUE"},
+{(char *)"+shape", (char *)"*eyes.shapeWindow", XrmoptionNoArg, (char *)"FALSE"},
#ifdef XRENDER
-{"-render", "*eyes.render", XrmoptionNoArg, "TRUE"},
-{"+render", "*eyes.render", XrmoptionNoArg, "FALSE"},
+{(char *)"-render", (char *)"*eyes.render", XrmoptionNoArg, (char *)"TRUE"},
+{(char *)"+render", (char *)"*eyes.render", XrmoptionNoArg, (char *)"FALSE"},
#endif
#ifdef PRESENT
-{"-present", "*eyes.present", XrmoptionNoArg, "TRUE"},
-{"+present", "*eyes.present", XrmoptionNoArg, "FALSE"},
+{(char *)"-present", (char *)"*eyes.present", XrmoptionNoArg, (char *)"TRUE"},
+{(char *)"+present", (char *)"*eyes.present", XrmoptionNoArg, (char *)"FALSE"},
#endif
-{"-distance", "*eyes.distance", XrmoptionNoArg, "TRUE"},
+{(char *)"-distance", (char *)"*eyes.distance", XrmoptionNoArg, (char *)"TRUE"},
};
static Atom wm_delete_window;
@@ -100,7 +100,7 @@ quit(Widget w, XEvent *event, String *params, Cardinal *num_params)
}
static XtActionsRec actions[] = {
- {"quit", quit}
+ {(char *) "quit", quit}
};
int