gcc11 -Wall -Wpedantic cleanup (post TCL9)

This commit is contained in:
Darryl L. Miles 2025-01-06 16:24:57 +00:00
parent aa5ddbaa58
commit c21e182b2c
3 changed files with 4 additions and 4 deletions

View File

@ -898,7 +898,7 @@ cifMakeBoundaryFunc(
Rect area; Rect area;
char propertyvalue[128], *storedvalue; char propertyvalue[128], *storedvalue;
int savescale; int savescale;
int filetype = (int)clientdata; int filetype = (int)CD2INT(clientdata);
TiToRect(tile, &area); TiToRect(tile, &area);
area.r_xtop = CIFScaleCoord(area.r_xtop, COORD_EXACT); area.r_xtop = CIFScaleCoord(area.r_xtop, COORD_EXACT);

View File

@ -121,7 +121,7 @@ DebugAddFlag(clientID, name)
if (id < 0 || id >= debugNumClients) if (id < 0 || id >= debugNumClients)
{ {
TxError("DebugAddFlag: bad client id %lu (flag %s)\n", clientID, name); TxError("DebugAddFlag: bad client id %lu (flag %s)\n", CD2INT(clientID), name);
return (0); return (0);
} }
@ -165,7 +165,7 @@ DebugShow(clientID)
if (id < 0 || id >= debugNumClients) if (id < 0 || id >= debugNumClients)
{ {
TxError("DebugShow: bad client id %lu\n", clientID); TxError("DebugShow: bad client id %lu\n", CD2INT(clientID));
return; return;
} }
dc = &debugClients[id]; dc = &debugClients[id];

View File

@ -54,7 +54,7 @@ windPrintWindow(w)
LinkedRect *lr; LinkedRect *lr;
TxPrintf("\nWindow %d: '%s'\n", w->w_wid, w->w_caption); TxPrintf("\nWindow %d: '%s'\n", w->w_wid, w->w_caption);
TxPrintf(" Client %lx Surface %lx \n", w->w_client, w->w_surfaceID); TxPrintf(" Client %lx Surface %lx \n", w->w_client, CD2INT(w->w_surfaceID));
TxPrintf(" All area (%d, %d) (%d, %d)\n", TxPrintf(" All area (%d, %d) (%d, %d)\n",
w->w_allArea.r_xbot, w->w_allArea.r_ybot, w->w_allArea.r_xbot, w->w_allArea.r_ybot,