[Qt-creator] Qt Creator 2.0 displays additional warning information as errors

mail at philippmuenzel.de mail at philippmuenzel.de
Thu Jul 8 17:22:27 CEST 2010


Hello,

I recently switched from Qt-Creator 1.3 to 2.0.
I noticed a strange behavior in the "Build Issues"-tab:

When compiling with gcc, I get a warning that looks like this in the "Compiler Output"-tab
foo.h: In member function `void Foo<T>::bar(const T&) [with T = int]':
foo.h:137: instantiated from XYZ
foo.h:52: instantiated from XY
foo.cpp:18: instantiated from here
foo.h:60: warning: converting to `int' from `double'

This warning is displayed in the "Build issues"-tab as
(no symbol) In member function...
(red exclamation mark) instantiated from XYZ
(red exclamation mark) instantiated from XY
(red exclamation mark) instantiated from here
(yellow triangle) converting to `int' from `double'

and causes the red error exlamation mark and number 3 to be displayed beneath the build progress bar on the left, which fills with all green, since the compile succeeds.

Apparantly, the "instantiated from" is interpreted as a compile error instead as an additional information to the compile warning.

It is pretty astonishing to see "compile errors" where there are none, but additional warning information. IIRC, this issue was not there in Qt-Creator 1.3

Regards,
Philipp



More information about the Qt-creator-old mailing list