diff --git a/lef/defRead.c b/lef/defRead.c index 3629aaac..16265a92 100644 --- a/lef/defRead.c +++ b/lef/defRead.c @@ -1444,7 +1444,7 @@ DefReadPins( { char *token; char pinname[LEF_LINE_MAX]; - int keyword, subkey, values, flags; + int keyword, subkey, flags; int processed = 0; int pinDir = PORT_CLASS_DEFAULT; int pinUse = PORT_USE_DEFAULT; @@ -1454,7 +1454,6 @@ DefReadPins( LinkedRect *rectList = NULL, *newRect; Rect *currect, topRect; Transform t; - lefLayer *lefl; bool pending = FALSE; bool hasports = FALSE; @@ -1772,12 +1771,10 @@ DefReadBlockages( int total) { char *token; - int keyword, subkey, values; + int keyword, subkey; int processed = 0; TileType curlayer; Rect *currect; - lefLayer *lefl; - HashEntry *he; static const char * const block_keys[] = { "-", @@ -1890,10 +1887,9 @@ DefReadVias( { char *token; char vianame[LEF_LINE_MAX]; - int keyword, subkey, values; + int keyword, subkey; int processed = 0; TileType curlayer; - Rect *currect; lefLayer *lefl; HashEntry *he; @@ -2177,7 +2173,7 @@ DefReadComponents( Transform t; char *token, *dptr; char usename[512]; - int keyword, subkey, values; + int keyword, subkey; int processed = 0; static const char * const component_keys[] = { diff --git a/lef/defWrite.c b/lef/defWrite.c index 7cdf7a26..e3309287 100644 --- a/lef/defWrite.c +++ b/lef/defWrite.c @@ -107,7 +107,6 @@ defWriteHeader( float oscale, int units) /* Units for UNITS; could be derived from oscale */ { - TileType type; char *propvalue; bool propfound; @@ -294,7 +293,6 @@ defnodeCount( NetCount *total) { HierName *hierName; - char ndn[256]; char *cp, clast; /* Ignore the substrate node if it is not connected to any routing */ @@ -530,7 +528,6 @@ defWriteRouteWidth( DefData *defdata, int width) { - float oscale = defdata->scale; char numstr[32]; sprintf(numstr, "%.10g", ((float)width * defdata->scale)); defCheckForBreak(strlen(numstr) + 1, defdata); @@ -666,10 +663,8 @@ defnodeVisit( char locndn[256]; FILE *f = defdata->f; CellDef *def = defdata->def; - float oscale = defdata->scale; TileTypeBitMask tmask, *rmask; - TileType nodetype, magictype; - Rect *nodeloc; + TileType magictype; LinkedRect *lr; EFNodeName *thisnn; int defNetGeometryFunc(Tile *tile, int plane, DefData *defdata); /* Forward declaration */ @@ -1168,7 +1163,6 @@ defNetGeometryFunc( int ndv = (h > w) ? w : h; char ndname[100]; LefRules *ruleset; - lefRule *rule; /* TxPrintf("Net at (%d, %d) has width %d, default width is %d\n", @@ -1718,7 +1712,7 @@ defCountViaFunc( TileType ttype = TiGetType(tile), ctype, rtype; TileTypeBitMask *rmask, *rmask2; Tile *tp; - char *lname, vname[100], *vp, posstr[24]; + char *lname, vname[100], posstr[24]; Rect r, r2, rorig; int w, h, offx, offy, sdist, lorient, horient; int ldist, hdist, sldist, shdist, pNum; @@ -2760,8 +2754,7 @@ arrayDefFunc( int sx = use->cu_xhi - use->cu_xlo; int sy = use->cu_yhi - use->cu_ylo; char idx[32]; - Rect box, rect, *r, bbrect, defrect; - int xoff, yoff; + Rect box, rect, *r; idx[0] = 0; @@ -2770,7 +2763,6 @@ arrayDefFunc( r = &use->cu_def->cd_bbox; - xoff = yoff = 0; if (use->cu_def->cd_flags & CDFIXEDBBOX) { char *propval; @@ -2954,8 +2946,6 @@ DefWriteCell( HashTable defViaTable; LefMapping *lefMagicToLefLayer; - int i; - lefLayer *lefl; HashEntry *he; HashSearch hs; diff --git a/lef/lefRead.c b/lef/lefRead.c index 3fd73279..edc44966 100644 --- a/lef/lefRead.c +++ b/lef/lefRead.c @@ -87,9 +87,7 @@ LefEstimate( int total, const char *item_name) { - static int check_interval, partition; static struct timeval tv_start; - static float last_time; struct timeval tv; struct timezone tz; float cur_time, time_left; @@ -463,7 +461,7 @@ LefParseEndStatement( const char *match) { char *token; - int keyword, words; + int keyword; const char * match_name[2]; static const char * const end_section[] = { @@ -2496,7 +2494,7 @@ LefGenViaGeometry( float oscale) /* output scaling */ { Rect rect; - int i, j, x, y, w, h, sw, sh; + int i, j, x, y, w, h; LinkedRect *viaLR; float hscale = oscale / 2; @@ -2662,7 +2660,6 @@ LefReadLayerSection( { char *token; int keyword, typekey; - Rect viaArea; TileType curlayer = -1; float fvalue, oscale; @@ -2719,7 +2716,6 @@ LefReadLayerSection( }; oscale = CIFGetOutputScale(1000); - viaArea = GeoNullRect; while ((token = LefNextToken(f, TRUE)) != NULL) { diff --git a/lef/lefWrite.c b/lef/lefWrite.c index 0421e10d..557a3fc8 100644 --- a/lef/lefWrite.c +++ b/lef/lefWrite.c @@ -257,7 +257,6 @@ lefWriteHeader( HashTable *propTable, /* Hash table of property definitions */ HashTable *siteTable) /* Hash table of sites used */ { - TileType type; HashSearch hs; HashEntry *he; int nprops; @@ -732,10 +731,9 @@ lefYankContacts( { lefClient *lefdata = (lefClient *)cdata; Rect area; - TileType ttype, ptype, stype; + TileType ttype, stype; LefMapping *lefMagicToLefLayer; - TileTypeBitMask sMask, *lrmask; - bool iscut; + TileTypeBitMask *lrmask; /* Ignore marked tiles */ if (tile->ti_client != (ClientData)CLIENTDEFAULT) return 0;