[Freeciv-Dev] patch: ANSI C fixes in gui-xaw (PR#565)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
When trying out "gcc -ansi -pedantic" to re-check whether it was
usable, some warnings came up in gui-xaw which seemed worth fixing:
- ANSI C doesn't support casting function pointers to (void*), which
we do with input_dialog_create() in Xaw client. This patch changes
arguments to XtCallbackProc, and then don't need to cast at all.
- timer_callback() uses caddr_t, which doesn't seem to be defined
-ansi, so change to use XtPointer instead -- which is more appropriate
anyway.
-- David
fixes_ansi.diff.gz
Description: GNU Zip compressed data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] patch: ANSI C fixes in gui-xaw (PR#565),
David Pfitzner <=
|
|