* 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:36 +00:00
parent d25bea005d
commit b8883968be
10 changed files with 12 additions and 12 deletions

View File

@ -283,7 +283,7 @@ extern "C" {
PyObject* arg0; PyObject* arg0;
PyObject* arg1; PyObject* arg1;
DbU::Unit result; DbU::Unit result = 0;
HTRY HTRY
__cs.init ( "DbU.getOnPhysicalGrid" ); __cs.init ( "DbU.getOnPhysicalGrid" );

View File

@ -1286,7 +1286,7 @@ namespace Hurricane {
} }
void CellWidget::changeDbuMode ( int mode, DbU::UnitPower p ) void CellWidget::changeDbuMode ( unsigned int mode, DbU::UnitPower p )
{ {
if ( (_state->getDbuMode() != mode) or (_state->getUnitPower() != p) ) { if ( (_state->getDbuMode() != mode) or (_state->getUnitPower() != p) ) {
_state->setDbuMode ( mode ); _state->setDbuMode ( mode );
@ -1670,7 +1670,7 @@ namespace Hurricane {
QFontMetrics metrics = QFontMetrics(font); QFontMetrics metrics = QFontMetrics(font);
int width = metrics.width ( text ); int width = metrics.width ( text );
int height = metrics.height (); //int height = metrics.height ();
int angle = 0; int angle = 0;
if ( (width > box.width()) and (box.height() > 2*box.width()) ) if ( (width > box.width()) and (box.height() > 2*box.width()) )

View File

@ -236,6 +236,7 @@ namespace Hurricane {
case DbU::Physical: case DbU::Physical:
switch ( _cellWidget->getUnitPower() ) { switch ( _cellWidget->getUnitPower() ) {
case DbU::Nano: _nanoMode ->setChecked(true); break; case DbU::Nano: _nanoMode ->setChecked(true); break;
default:
case DbU::Micro: _microMode->setChecked(true); break; case DbU::Micro: _microMode->setChecked(true); break;
} }
break; break;

View File

@ -39,8 +39,8 @@ namespace Hurricane {
ExceptionWidget::ExceptionWidget ( QWidget* parent ) ExceptionWidget::ExceptionWidget ( QWidget* parent )
: QDialog (parent) : QDialog (parent)
, _message(new QLabel())
, _header (new QLabel()) , _header (new QLabel())
, _message(new QLabel())
{ {
setAttribute ( Qt::WA_DeleteOnClose ); setAttribute ( Qt::WA_DeleteOnClose );
setModal ( true ); setModal ( true );

View File

@ -141,7 +141,7 @@ namespace Hurricane {
if ( mode == DbU::Physical ) { if ( mode == DbU::Physical ) {
switch ( p ) { switch ( p ) {
case DbU::Nano: mode = Nanometer; break; case DbU::Nano: mode = Nanometer; break;
defult: default:
case DbU::Micro: mode = Micrometer; break; case DbU::Micro: mode = Micrometer; break;
} }
} }

View File

@ -94,9 +94,9 @@ namespace Hurricane {
void InspectorWidget::History::goTo ( int depth ) void InspectorWidget::History::goTo ( int depth )
{ {
if ( ( depth < 0 ) || ( depth >= (int)_slots.size() ) ) return; if ( ( depth < 0 ) or ( (size_t)depth >= _slots.size() ) ) return;
if ( depth != _depth ) { if ( (size_t)depth != _depth ) {
_depth = depth; _depth = (size_t)depth;
_comboBox->setCurrentIndex ( _depth ); _comboBox->setCurrentIndex ( _depth );
} }
} }

View File

@ -88,7 +88,7 @@ namespace {
inline int GridBuffer::getRow () const { return _row; } inline int GridBuffer::getRow () const { return _row; }
inline int GridBuffer::getColumn () const { return _column; } inline int GridBuffer::getColumn () const { return _column; }
inline int GridBuffer::getCurrentRow () const { return _widgets.size() + _row; } inline int GridBuffer::getCurrentRow () const { return _widgets.size() + _row; }
inline bool GridBuffer::columnOverload () const { return getCurrentRow() > _rowMax; } inline bool GridBuffer::columnOverload () const { return getCurrentRow() > (int)_rowMax; }
void GridBuffer::flushWidgets () void GridBuffer::flushWidgets ()

View File

@ -285,7 +285,7 @@ namespace Hurricane {
inline void clearRulers (); inline void clearRulers ();
void changeQueryFilter (); void changeQueryFilter ();
void rubberChange (); void rubberChange ();
void changeDbuMode ( int mode, DbU::UnitPower ); void changeDbuMode ( unsigned int mode, DbU::UnitPower );
void setStyle ( int id ); void setStyle ( int id );
void updatePalette (); void updatePalette ();
void cellPreModificate (); void cellPreModificate ();

View File

@ -196,7 +196,6 @@ namespace Hurricane {
string windowTitle = "Netlist" + getString(cell); string windowTitle = "Netlist" + getString(cell);
setWindowTitle ( tr(windowTitle.c_str()) ); setWindowTitle ( tr(windowTitle.c_str()) );
int rows = _sortModel->rowCount ();
_view->selectRow ( 0 ); _view->selectRow ( 0 );
_view->resizeColumnToContents ( 0 ); _view->resizeColumnToContents ( 0 );
} }

View File

@ -88,7 +88,7 @@ int main() {
//// ////
//Net net1 External and IN of Model1 creation //Net net1 External and IN of Model1 creation
Net* net1 = Net::create(model1, Name("net1")); //Net* net1 = Net::create(model1, Name("net1"));
cout << "Testing net1 presence in cell model1" << endl; cout << "Testing net1 presence in cell model1" << endl;
///// /////
//set net1 as External //set net1 as External