[Interest] Compilaton errors in qtestspontaneevent.h with intel C++ compiler on linux

Olivier BARTHELEMY barthelemy at geovariances.com
Tue Sep 3 10:12:41 CEST 2013


Hi,
I am getting compilation errors with ICC in my tests programs (that use
QtTest) since i switched from Qt 4.8.2 to Qt 4.8.5. the same code compiles
fines on VS2010 32/64bit or gcc41/44 64bit, but ICC 64bit gives those new
errors :

.../qt-4.8.5/include/QtTest/qtestspontaneevent.h(89): error: taking
the address of a bit field is not allowed
          Q_UNUSED(posted);
.../qt-4.8.5/include/QtTest/qtestspontaneevent.h(90): error: taking
the address of a bit field is not allowed
          Q_UNUSED(m_accept);
.../qt-4.8.5/include/QtTest/qtestspontaneevent.h(91): error: taking
the address of a bit field is not allowed
          Q_UNUSED(reserved);

These lines are apparently new from
http://qt.gitorious.org/qt/qt/commit/4326cff0ada1e1bd9265ff11a035ae21314471f0,
to remove a warning of CLang. Since they don't pertain my compilers,
commenting them out removes the error for me, but what would be the
proper way to remove the errors?

Thanks


-- 
Olivier BARTHELEMY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130903/6d4723e2/attachment.html>


More information about the Interest mailing list