Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2000:
[Freeciv-Dev] patch: ANSI C fixes in gui-xaw (PR#565)
Home

[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]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] patch: ANSI C fixes in gui-xaw (PR#565)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Fri, 22 Sep 2000 20:02:03 -0700 (PDT)

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

Attachment: 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 <=