[Uml-devel] can't compile u1 cvs

Sebastian Stein seb_stein at gmx.de
Wed Apr 2 09:02:16 UTC 2003


I'm trying to compile the current Umbrello KDE CVS version and I get those
warnings and an error. Most problems could be solved by just casting, but
I'm not that deep in the code so maybe the committer should fix this!


classwidget.cpp: In member function `virtual void
   Umbrello::ClassWidget::drawShape(QPainter&)':
classwidget.cpp:99: warning: assignment to `int' from `double'
classwidget.cpp:99: warning: argument to `int' from `double'
classwidget.cpp:100: warning: assignment to `int' from `double'
classwidget.cpp:100: warning: argument to `int' from `double'
classwidget.cpp:128: warning: passing `double' for argument 1 of `void
   QPainter::drawLine(int, int, int, int)'
classwidget.cpp:128: warning: passing `double' for argument 3 of `void
   QPainter::drawLine(int, int, int, int)'
classwidget.cpp:147: warning: passing `double' for argument 1 of `void
   QPainter::drawLine(int, int, int, int)'
classwidget.cpp:147: warning: passing `double' for argument 3 of `void
   QPainter::drawLine(int, int, int, int)'
classwidget.cpp:166: warning: passing `double' for argument 1 of `
   QPoint::QPoint(int, int)'
classwidget.cpp:166: warning: passing `double' for argument 2 of `
   QPoint::QPoint(int, int)'
classwidget.cpp:168: warning: passing `double' for argument 1 of `
   QPoint::QPoint(int, int)'
classwidget.cpp:168: warning: passing `double' for argument 2 of `
   QPoint::QPoint(int, int)'
classwidget.cpp:170: warning: passing `double' for argument 1 of `
   QPoint::QPoint(int, int)'
classwidget.cpp:170: warning: passing `double' for argument 2 of `
   QPoint::QPoint(int, int)'
classwidget.cpp:172: warning: passing `double' for argument 1 of `
   QPoint::QPoint(int, int)'
classwidget.cpp:172: warning: passing `double' for argument 2 of `
   QPoint::QPoint(int, int)'
classwidget.cpp: In member function `void
   Umbrello::ClassWidget::calculateSize()':
classwidget.cpp:206: warning: invalid conversion from `int' to `
   Umbrello::ClassWidget::TextFlags'
classwidget.cpp:245: warning: invalid conversion from `int' to `
   Umbrello::ClassWidget::TextFlags'
classwidget.cpp:278: warning: invalid conversion from `int' to `
   Umbrello::ClassWidget::TextFlags'
classwidget.cpp:282: warning: invalid conversion from `int' to `
   Umbrello::ClassWidget::TextFlags'


classwidget.cpp:301: `max' undeclared (first use this function)

The error. Maybe just a missing #include.

classwidget.cpp:301: (Each undeclared identifier is reported only once for
each
   function it appears in.)
classwidget.cpp:291: warning: unused variable `int currentWidth'
make[2]: *** [classwidget.lo] Fehler 1
make[2]: Leaving directory
`...../kdesdk/umbrello/umbrello/diagram'

Steinchen
-- 
Umbrello UML Modeller
Description     : UML diagram drawing tool for KDE with code generation
Homepage        : http://www.umbrello.org/




More information about the umbrello-devel mailing list