gcc11 -Wall -Wpedantic cleanup (post __attribute__)
This commit is contained in:
parent
48c99a7b1d
commit
6afadf9809
|
|
@ -140,7 +140,7 @@ CIFReadError(const char *format, ...)
|
|||
if (cifLineNumber > 0)
|
||||
TxError("Error at line %d of CIF file: ", cifLineNumber);
|
||||
else
|
||||
TxError("CIF file read error: ", cifLineNumber);
|
||||
TxError("CIF file read error: ");
|
||||
va_start(args, format);
|
||||
Vfprintf(stderr, format, args);
|
||||
va_end(args);
|
||||
|
|
|
|||
|
|
@ -1622,7 +1622,7 @@ dbTileScaleFunc(tile, scvals)
|
|||
(targetRect.r_ytop - targetRect.r_ybot == 0))
|
||||
{
|
||||
TxPrintf("Tile %p at (%d, %d) has zero area after scaling: Removed.\n",
|
||||
tile, targetRect.r_xbot, targetRect.r_ybot);
|
||||
(void *) tile, targetRect.r_xbot, targetRect.r_ybot);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -383,7 +383,7 @@ extBasic(def, outFile)
|
|||
if (devidx < 0)
|
||||
{
|
||||
TxError("Extract error: \"device\" property has unknown "
|
||||
"device type.\n", token);
|
||||
"device type: %s\n", token);
|
||||
propfound = FALSE;
|
||||
}
|
||||
if (propfound)
|
||||
|
|
|
|||
|
|
@ -542,11 +542,11 @@ gcrDumpCol(col, size)
|
|||
return;
|
||||
|
||||
for (i = size; i >= 0; i--)
|
||||
TxPrintf("[%2d] hi=%6d(%c) lo=%6d(%c) h=%6d v=%6d w=%6d f=%4d\n", i,
|
||||
TxPrintf("[%2d] hi=%6d(%c) lo=%6d(%c) h=%6lu v=%6lu w=%6lu f=%4d\n", i,
|
||||
col[i].gcr_hi, col[i].gcr_hOk ? 'T' : 'F',
|
||||
col[i].gcr_lo, col[i].gcr_lOk ? 'T' : 'F',
|
||||
col[i].gcr_h, col[i].gcr_v,
|
||||
col[i].gcr_wanted, col[i].gcr_flags);
|
||||
(pointertype) col[i].gcr_h, (pointertype) col[i].gcr_v,
|
||||
(pointertype) col[i].gcr_wanted, col[i].gcr_flags);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ DefAddRoutes(rootDef, f, oscale, special, netname, ruleset, defLayerMap, annotat
|
|||
}
|
||||
else if (!strcmp(token, "POLYGON"))
|
||||
{
|
||||
LefError(DEF_ERROR, "Route has POLYGON entries, this is not handled!\n",
|
||||
LefError(DEF_ERROR, "Route has %s entries, this is not handled!\n",
|
||||
token);
|
||||
token = LefNextToken(f, TRUE); /* read opening parens */
|
||||
goto endCoord;
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ PlotPrintParams()
|
|||
{
|
||||
TxPrintf("General plotting parameters are:\n");
|
||||
TxPrintf(" showCellNames: %s\n", PlotShowCellNames ? "true" : "false");
|
||||
TxPrintf("");
|
||||
TxPrintf("\n");
|
||||
TxPrintf("Postscript plotting parameters are:\n");
|
||||
TxPrintf(" PS_cellIdFont: \"%s\"\n", PlotPSIdFont);
|
||||
TxPrintf(" PS_cellNameFont:\"%s\"\n", PlotPSNameFont);
|
||||
|
|
@ -297,7 +297,7 @@ PlotPrintParams()
|
|||
TxPrintf(" PS_margin: %d (%.3f in)\n", PlotPSMargin,
|
||||
(float)PlotPSMargin / 72);
|
||||
|
||||
TxPrintf("");
|
||||
TxPrintf("\n");
|
||||
TxPrintf("PNM plotting parameters are:\n");
|
||||
TxPrintf(" pnmmaxmem: %d KB\n", PlotPNMmaxmem);
|
||||
TxPrintf(" pnmdownsample: %d\n", PlotPNMdownsample);
|
||||
|
|
@ -305,7 +305,7 @@ PlotPrintParams()
|
|||
|
||||
#ifdef VERSATEC
|
||||
TxPrintf(" pnmplotRTL: %s\n", PlotPNMRTL ? "true" : "false");
|
||||
TxPrintf("");
|
||||
TxPrintf("\n");
|
||||
TxPrintf("HP/Versatec plotting parameters are:\n");
|
||||
TxPrintf(" cellIdFont: \"%s\"\n", PlotVersIdFont);
|
||||
TxPrintf(" cellNameFont: \"%s\"\n", PlotVersNameFont);
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ PlowTest(w, cmd)
|
|||
break;
|
||||
case PC_MERGEDOWN:
|
||||
tp = TiSrPointNoHint(plane, &editArea.r_ll);
|
||||
TxPrintf("Merging tile %p below\n", tp);
|
||||
TxPrintf("Merging tile %p below\n", (void *)tp);
|
||||
TiToRect(tp, &editArea);
|
||||
TiToRect(RT(tp), &area2);
|
||||
(void) GeoInclude(&area2, &editArea);
|
||||
|
|
@ -345,7 +345,7 @@ PlowTest(w, cmd)
|
|||
break;
|
||||
case PC_MERGEUP:
|
||||
tp = TiSrPointNoHint(plane, &editArea.r_ll);
|
||||
TxPrintf("Merging tile %p above\n", tp);
|
||||
TxPrintf("Merging tile %p above\n", (void *)tp);
|
||||
TiToRect(tp, &editArea);
|
||||
TiToRect(RT(tp), &area2);
|
||||
(void) GeoInclude(&area2, &editArea);
|
||||
|
|
@ -355,7 +355,7 @@ PlowTest(w, cmd)
|
|||
case PC_PRINT:
|
||||
tp = TiSrPointNoHint(plane, &editArea.r_ll);
|
||||
TxPrintf("Tile %p LEFT=%d RIGHT=%d BOTTOM=%d TOP=%d\n",
|
||||
tp, LEFT(tp), RIGHT(tp), BOTTOM(tp), TOP(tp));
|
||||
(void *)tp, LEFT(tp), RIGHT(tp), BOTTOM(tp), TOP(tp));
|
||||
TxPrintf(" TRAILING=%d LEADING=%d TYPE=%s\n",
|
||||
TRAILING(tp), LEADING(tp), DBTypeLongName(TiGetTypeExact(tp)));
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ void
|
|||
TxPrintEvent(event)
|
||||
TxInputEvent *event;
|
||||
{
|
||||
TxError("Input event at %p\n ", event);
|
||||
TxError("Input event at %p\n ", (void *) event);
|
||||
if (event->txe_button == TX_EOF) {
|
||||
TxError("EOF event");
|
||||
} else if (event->txe_button == TX_BYPASS) {
|
||||
|
|
@ -255,7 +255,7 @@ TxPrintCommand(cmd)
|
|||
int i, j;
|
||||
char TxTemp[200];
|
||||
|
||||
TxError("Command at %p\n ", cmd);
|
||||
TxError("Command at %p\n ", (void *) cmd);
|
||||
if (cmd->tx_button == TX_CHARACTER) {
|
||||
TxError("Text command with %d words: ", cmd->tx_argc);
|
||||
for (i = 0; i < cmd->tx_argc; i++) {
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ windPrintWindow(w)
|
|||
LinkedRect *lr;
|
||||
|
||||
TxPrintf("\nWindow %d: '%s'\n", w->w_wid, w->w_caption);
|
||||
TxPrintf(" Client %lx Surface %lx \n", w->w_client, CD2INT(w->w_surfaceID));
|
||||
TxPrintf(" Client %p Surface %lx \n", (void *) w->w_client, CD2INT(w->w_surfaceID));
|
||||
|
||||
TxPrintf(" All area (%d, %d) (%d, %d)\n",
|
||||
w->w_allArea.r_xbot, w->w_allArea.r_ybot,
|
||||
|
|
|
|||
Loading…
Reference in New Issue