diff options
author | Keith Packard <keithp@keithp.com> | 2020-03-23 08:55:53 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2020-03-29 13:47:14 -0700 |
commit | 7517441ffa1aecb6f565217149762267d145e11e (patch) | |
tree | d76e119e62bb1fbb297edc607235548e7baf2f39 /xeyes.c | |
parent | 420c2d8517246c9e422739cadb7acb29e35a3bed (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.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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 |