aboutsummaryrefslogtreecommitdiff
path: root/generic/Track.c
diff options
context:
space:
mode:
authorlecoanet2005-03-22 15:30:02 +0000
committerlecoanet2005-03-22 15:30:02 +0000
commit23bdc8a0e8b3ad414e02095443db0bf800a416a7 (patch)
tree32dca5b2d080e37bcf7c7d688b0a90a2bb0ed74c /generic/Track.c
parent031202b57154ac378a03b3524dfa155e6110df03 (diff)
downloadtkzinc-23bdc8a0e8b3ad414e02095443db0bf800a416a7.zip
tkzinc-23bdc8a0e8b3ad414e02095443db0bf800a416a7.tar.gz
tkzinc-23bdc8a0e8b3ad414e02095443db0bf800a416a7.tar.bz2
tkzinc-23bdc8a0e8b3ad414e02095443db0bf800a416a7.tar.xz
Suppressed __unused attribute, this will be dealed with
by the gcc directive -Wno-unused-parameter and VC++ does not care about these anyway.
Diffstat (limited to 'generic/Track.c')
-rw-r--r--generic/Track.c36
1 files changed, 18 insertions, 18 deletions
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;