* All tools:

- Change: Correction to suppress all g++ warnings. Except thoses comming
        from bad Python system includes...
This commit is contained in:
Jean-Paul Chaput 2010-05-17 14:40:39 +00:00
parent b8883968be
commit 605eeff9e4
7 changed files with 30 additions and 31 deletions

View File

@ -36,13 +36,13 @@
namespace { namespace {
const char *missingMandatoryAttr = // const char *missingMandatoryAttr =
"CRoutingGauge::createFromXml () :\n\n" // "CRoutingGauge::createFromXml () :\n\n"
" Can't found mandatory attribute \"%s\".\n"; // " Can't found mandatory attribute \"%s\".\n";
const char *badAttrValue = // const char *badAttrValue =
"CRoutingGauge::createFromXml () :\n\n" // "CRoutingGauge::createFromXml () :\n\n"
" Invalid value \"%s\" for attribute \"%s\".\n"; // " Invalid value \"%s\" for attribute \"%s\".\n";
// const char *missingCellGaugeTag = // const char *missingCellGaugeTag =
// "::createCellGaugeFromXml () :\n\n" // "::createCellGaugeFromXml () :\n\n"

View File

@ -62,8 +62,8 @@ namespace CRL {
void RealTechnologyParser::parseGrid () void RealTechnologyParser::parseGrid ()
{ {
QString value; QString value;
double gridValue; double gridValue = 1.0;
DbU::UnitPower gridUnit; DbU::UnitPower gridUnit = DbU::Micro;
value = _reader->attributes().value("value").toString(); value = _reader->attributes().value("value").toString();
if ( !value.isEmpty() ) if ( !value.isEmpty() )
@ -94,7 +94,7 @@ namespace CRL {
void RealTechnologyParser::parseGridsPerLambda () void RealTechnologyParser::parseGridsPerLambda ()
{ {
QString value; QString value;
double gridsPerLambda; double gridsPerLambda = 10.0;
value = _reader->attributes().value("value").toString(); value = _reader->attributes().value("value").toString();
if ( !value.isEmpty() ) if ( !value.isEmpty() )

View File

@ -38,13 +38,13 @@ namespace {
// --------------------------------------------------------------- // ---------------------------------------------------------------
// Local Variables. // Local Variables.
const char* notBasicLayer = // const char* notBasicLayer =
"%s :\n\n" // "%s :\n\n"
" %s is not a <BasicLayer>.\n"; // " %s is not a <BasicLayer>.\n";
const char* notConductingLayer = // const char* notConductingLayer =
"%s :\n\n" // "%s :\n\n"
" %s is not a CONDUCTING <BasicLayer>.\n"; // " %s is not a CONDUCTING <BasicLayer>.\n";
const char* negativeIndex = const char* negativeIndex =
"RoutingLayerGauge::getTrackIndex() :\n\n" "RoutingLayerGauge::getTrackIndex() :\n\n"

View File

@ -2,7 +2,7 @@
// -*- C++ -*- // -*- C++ -*-
// //
// This file is part of the Coriolis Software. // 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<const Name,const char*> tableLayer; static map<const Name,const char*> tableLayer;
static map<const Name,const char*> tableContact; static map<const Name,const char*> tableContact;
static map<const Name,const char*> tableConnector; static map<const Name,const char*> tableConnector;
static const char* untranslatable = "UNTRANSLATABLE";
if ( firstCall ) { if ( firstCall ) {
firstCall = false; firstCall = false;

View File

@ -810,7 +810,7 @@ void BKParser::LoadFromFile ( const string& cellPath, Cell* cell )
_lineNumber++; _lineNumber++;
continue; continue;
} }
char* result = fgets ( &_buffer[1], sizeof ( _buffer ) - 1, _file ); fgets ( &_buffer[1], sizeof ( _buffer ) - 1, _file );
_lineNumber++; _lineNumber++;
if ( _buffer[0] == '#' ) continue; if ( _buffer[0] == '#' ) continue;
@ -910,7 +910,7 @@ void BKParser::LoadFromFile ( const string& cellPath, Cell* cell )
_lineNumber++; _lineNumber++;
continue; continue;
} }
char* result = fgets ( &_buffer[1], sizeof ( _buffer ) - 1, _file ); fgets ( &_buffer[1], sizeof ( _buffer ) - 1, _file );
_lineNumber++; _lineNumber++;
if ( _buffer[0] == '#' ) continue; if ( _buffer[0] == '#' ) continue;

View File

@ -75,10 +75,10 @@ void CifQuery::goCallback(Go* go) {
return; return;
} }
CifPolygon* poly = new CifPolygon ( layer->getExtractNumber() ); CifPolygon* poly = new CifPolygon ( layer->getExtractNumber() );
long xMin = round(DbU::getPhysical(b.getXMin(), DbU::Nano)); long xMin = (long)round(DbU::getPhysical(b.getXMin(), DbU::Nano));
long yMin = round(DbU::getPhysical(b.getYMin(), DbU::Nano)); long yMin = (long)round(DbU::getPhysical(b.getYMin(), DbU::Nano));
long xMax = round(DbU::getPhysical(b.getXMax(), DbU::Nano)); long xMax = (long)round(DbU::getPhysical(b.getXMax(), DbU::Nano));
long yMax = round(DbU::getPhysical(b.getYMax(), DbU::Nano)); long yMax = (long)round(DbU::getPhysical(b.getYMax(), DbU::Nano));
poly->addPoint(xMin, yMin); poly->addPoint(xMin, yMin);
poly->addPoint(xMax, yMin); poly->addPoint(xMax, yMin);
poly->addPoint(xMax, yMax); poly->addPoint(xMax, yMax);

View File

@ -90,14 +90,14 @@ namespace {
using namespace CRL; using namespace CRL;
unsigned int __lefConvertFactor = 1; //unsigned int __lefConvertFactor = 1;
Library* __library = NULL; //Library* __library = NULL;
AllianceFramework* __framework = NULL; //AllianceFramework* __framework = NULL;
Technology* __technology = NULL; //Technology* __technology = NULL;
Cell* __cell = NULL; //Cell* __cell = NULL;
Net* __net = NULL; //Net* __net = NULL;
long __userData = 0; //long __userData = 0;
Catalog* __catalog = NULL; //Catalog* __catalog = NULL;
// --------------------------------------------------------------- // ---------------------------------------------------------------