From 23bdc8a0e8b3ad414e02095443db0bf800a416a7 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Tue, 22 Mar 2005 15:30:02 +0000 Subject: Suppressed __unused attribute, this will be dealed with by the gcc directive -Wno-unused-parameter and VC++ does not care about these anyway. --- generic/Track.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'generic/Track.c') diff --git a/generic/Track.c b/generic/Track.c index 1ad4e47..48c55d5 100644 --- a/generic/Track.c +++ b/generic/Track.c @@ -681,7 +681,7 @@ Configure(ZnItem item, */ static int Query(ZnItem item, - int argc __znunused, + int argc, Tcl_Obj *CONST argv[]) { if (ZnQueryAttribute(item->wi->interp, item, track_attrs, argv[0]) == TCL_ERROR) { @@ -701,7 +701,7 @@ Query(ZnItem item, */ static void ComputeCoordinates(ZnItem item, - ZnBool force __znunused) + ZnBool force) { ZnWInfo *wi = item->wi; TrackItem track = (TrackItem) item; @@ -756,8 +756,8 @@ ComputeCoordinates(ZnItem item, wi->track_visible_history_size : 0); ZnResetBBox(&bbox); - w = track->history_width; - w2 = (w+1)/2; + w = (int) track->history_width; + w2 = (w+1)/2; num_acc_pos = ZnListSize(track->history); hist = ZnListArray(track->history); for (i = 0; i < num_acc_pos; i++) { @@ -1233,7 +1233,7 @@ Draw(ZnItem item) } num_acc_pos = MIN(visible_history_size, ZnListSize(track->history)); hist = ZnListArray(track->history); - side_size = track->history_width; + side_size = (int) track->history_width; for (i = 0, nb_hist = 0; i < num_acc_pos; i++) { if (ISSET(track->flags, LAST_AS_FIRST_BIT) && @@ -1504,7 +1504,7 @@ Render(ZnItem item) glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); num_acc_pos = MIN(visible_history_size, ZnListSize(track->history)); hist = ZnListArray(track->history); - side_size = track->history_width; + side_size = (int) track->history_width; /* * Turning off line and point smoothing * to enhance ;-) history drawing. @@ -1595,7 +1595,7 @@ Render(ZnItem item) } #else static void -Render(ZnItem item __znunused) +Render(ZnItem item) { } #endif @@ -1779,8 +1779,8 @@ Pick(ZnItem item, ********************************************************************************** */ static void -PostScript(ZnItem item __znunused, - ZnBool prepass __znunused) +PostScript(ZnItem item, + ZnBool prepass) { } @@ -1919,9 +1919,9 @@ ZnSendTrackToOm(void *ptr, ********************************************************************************** */ void -ZnSetLabelAngleFromOm(void *ptr __znunused, /* No longer in use. */ +ZnSetLabelAngleFromOm(void *ptr, /* No longer in use. */ void *item, - int rho __znunused, + int rho, int theta) { TrackItem track = (TrackItem) item; @@ -1951,7 +1951,7 @@ ZnSetLabelAngleFromOm(void *ptr __znunused, /* No longer in use. */ ********************************************************************************** */ void -ZnQueryLabelPosition(void *ptr __znunused, /* No longer in use. */ +ZnQueryLabelPosition(void *ptr, /* No longer in use. */ void *item, int theta, int *x, @@ -1999,9 +1999,9 @@ ZnQueryLabelPosition(void *ptr __znunused, /* No longer in use. */ ********************************************************************************** */ void -ZnSetHistoryVisibility(ZnItem item __znunused, - int index __znunused, - ZnBool visible __znunused) +ZnSetHistoryVisibility(ZnItem item, + int index, + ZnBool visible) { } @@ -2078,11 +2078,11 @@ GetAnchor(ZnItem item, */ static int Coords(ZnItem item, - int contour __znunused, - int index __znunused, + int contour, + int index, int cmd, ZnPoint **pts, - char **controls __znunused, + char **controls, unsigned int *num_pts) { TrackItem track = (TrackItem) item; -- cgit v1.1