diff --git a/crlcore/src/ccore/CellGauge.cpp b/crlcore/src/ccore/CellGauge.cpp index 1dc49891..59424d95 100644 --- a/crlcore/src/ccore/CellGauge.cpp +++ b/crlcore/src/ccore/CellGauge.cpp @@ -36,13 +36,13 @@ namespace { - const char *missingMandatoryAttr = - "CRoutingGauge::createFromXml () :\n\n" - " Can't found mandatory attribute \"%s\".\n"; +// const char *missingMandatoryAttr = +// "CRoutingGauge::createFromXml () :\n\n" +// " Can't found mandatory attribute \"%s\".\n"; - const char *badAttrValue = - "CRoutingGauge::createFromXml () :\n\n" - " Invalid value \"%s\" for attribute \"%s\".\n"; +// const char *badAttrValue = +// "CRoutingGauge::createFromXml () :\n\n" +// " Invalid value \"%s\" for attribute \"%s\".\n"; // const char *missingCellGaugeTag = // "::createCellGaugeFromXml () :\n\n" diff --git a/crlcore/src/ccore/RealTechnologyParser.cpp b/crlcore/src/ccore/RealTechnologyParser.cpp index 91963f00..2b459550 100644 --- a/crlcore/src/ccore/RealTechnologyParser.cpp +++ b/crlcore/src/ccore/RealTechnologyParser.cpp @@ -62,8 +62,8 @@ namespace CRL { void RealTechnologyParser::parseGrid () { QString value; - double gridValue; - DbU::UnitPower gridUnit; + double gridValue = 1.0; + DbU::UnitPower gridUnit = DbU::Micro; value = _reader->attributes().value("value").toString(); if ( !value.isEmpty() ) @@ -94,7 +94,7 @@ namespace CRL { void RealTechnologyParser::parseGridsPerLambda () { QString value; - double gridsPerLambda; + double gridsPerLambda = 10.0; value = _reader->attributes().value("value").toString(); if ( !value.isEmpty() ) diff --git a/crlcore/src/ccore/RoutingLayerGauge.cpp b/crlcore/src/ccore/RoutingLayerGauge.cpp index ec7ddf8e..64df8ee5 100644 --- a/crlcore/src/ccore/RoutingLayerGauge.cpp +++ b/crlcore/src/ccore/RoutingLayerGauge.cpp @@ -38,13 +38,13 @@ namespace { // --------------------------------------------------------------- // Local Variables. - const char* notBasicLayer = - "%s :\n\n" - " %s is not a .\n"; + // const char* notBasicLayer = + // "%s :\n\n" + // " %s is not a .\n"; - const char* notConductingLayer = - "%s :\n\n" - " %s is not a CONDUCTING .\n"; + // const char* notConductingLayer = + // "%s :\n\n" + // " %s is not a CONDUCTING .\n"; const char* negativeIndex = "RoutingLayerGauge::getTrackIndex() :\n\n" diff --git a/crlcore/src/ccore/alliance/ap/ApDriver.cpp b/crlcore/src/ccore/alliance/ap/ApDriver.cpp index 0a891fb5..e64987df 100644 --- a/crlcore/src/ccore/alliance/ap/ApDriver.cpp +++ b/crlcore/src/ccore/alliance/ap/ApDriver.cpp @@ -2,7 +2,7 @@ // -*- C++ -*- // // This file is part of the Coriolis Software. -// Copyright (c) UPMC/LIP6 2008-2009, All Rights Reserved +// Copyright (c) UPMC/LIP6 2008-2010, All Rights Reserved // // =================================================================== // @@ -74,7 +74,6 @@ bool toMBKLayer ( const char*& mbkLayer static map tableLayer; static map tableContact; static map tableConnector; - static const char* untranslatable = "UNTRANSLATABLE"; if ( firstCall ) { firstCall = false; diff --git a/crlcore/src/ccore/bookshelf/BookshelfParser.cpp b/crlcore/src/ccore/bookshelf/BookshelfParser.cpp index 71fc2389..99cda48f 100644 --- a/crlcore/src/ccore/bookshelf/BookshelfParser.cpp +++ b/crlcore/src/ccore/bookshelf/BookshelfParser.cpp @@ -810,7 +810,7 @@ void BKParser::LoadFromFile ( const string& cellPath, Cell* cell ) _lineNumber++; continue; } - char* result = fgets ( &_buffer[1], sizeof ( _buffer ) - 1, _file ); + fgets ( &_buffer[1], sizeof ( _buffer ) - 1, _file ); _lineNumber++; if ( _buffer[0] == '#' ) continue; @@ -910,7 +910,7 @@ void BKParser::LoadFromFile ( const string& cellPath, Cell* cell ) _lineNumber++; continue; } - char* result = fgets ( &_buffer[1], sizeof ( _buffer ) - 1, _file ); + fgets ( &_buffer[1], sizeof ( _buffer ) - 1, _file ); _lineNumber++; if ( _buffer[0] == '#' ) continue; diff --git a/crlcore/src/ccore/cif/CifDriver.cpp b/crlcore/src/ccore/cif/CifDriver.cpp index e83ee796..926f5cc8 100644 --- a/crlcore/src/ccore/cif/CifDriver.cpp +++ b/crlcore/src/ccore/cif/CifDriver.cpp @@ -75,10 +75,10 @@ void CifQuery::goCallback(Go* go) { return; } CifPolygon* poly = new CifPolygon ( layer->getExtractNumber() ); - long xMin = round(DbU::getPhysical(b.getXMin(), DbU::Nano)); - long yMin = round(DbU::getPhysical(b.getYMin(), DbU::Nano)); - long xMax = round(DbU::getPhysical(b.getXMax(), DbU::Nano)); - long yMax = round(DbU::getPhysical(b.getYMax(), DbU::Nano)); + long xMin = (long)round(DbU::getPhysical(b.getXMin(), DbU::Nano)); + long yMin = (long)round(DbU::getPhysical(b.getYMin(), DbU::Nano)); + long xMax = (long)round(DbU::getPhysical(b.getXMax(), DbU::Nano)); + long yMax = (long)round(DbU::getPhysical(b.getYMax(), DbU::Nano)); poly->addPoint(xMin, yMin); poly->addPoint(xMax, yMin); poly->addPoint(xMax, yMax); diff --git a/crlcore/src/ccore/lefdef/LefParser.cpp b/crlcore/src/ccore/lefdef/LefParser.cpp index 1f05091d..5d79ca4c 100644 --- a/crlcore/src/ccore/lefdef/LefParser.cpp +++ b/crlcore/src/ccore/lefdef/LefParser.cpp @@ -90,14 +90,14 @@ namespace { using namespace CRL; - unsigned int __lefConvertFactor = 1; - Library* __library = NULL; - AllianceFramework* __framework = NULL; - Technology* __technology = NULL; - Cell* __cell = NULL; - Net* __net = NULL; - long __userData = 0; - Catalog* __catalog = NULL; +//unsigned int __lefConvertFactor = 1; +//Library* __library = NULL; +//AllianceFramework* __framework = NULL; +//Technology* __technology = NULL; +//Cell* __cell = NULL; +//Net* __net = NULL; +//long __userData = 0; +//Catalog* __catalog = NULL; // ---------------------------------------------------------------