Results 1 to 2 of 2

Thread: Update to 4.4.2 generates new warnings

  1. #1
    Join Date
    Aug 2006
    Location
    Madison, WI USA
    Posts
    153
    Thanks
    35
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question Update to 4.4.2 generates new warnings

    I recently updated my commercial Qt version from 4.3.4 to 4.4.2 on my Windows XP SP3 machine. Compilation is now showing the following warning for numerous files:

    1>c:\qt\4.4.2\include\qtcore\../../src/corelib/concurrent/qtconcurrentiteratekernel.h(81) : warning C4512: 'QtConcurrent::BlockSizeManager' : assignment operator could not be generated
    1> c:\qt\4.4.2\include\qtcore\../../src/corelib/concurrent/qtconcurrentiteratekernel.h(63) : see declaration of 'QtConcurrent::BlockSizeManager'
    Since QtConcurrent was not in Qt before 4.4, I assume this is a benign warning. Has anyone else run into this?

    Is this showing up because of "#include <QtCore>" in some of my header files? Shall I be more restrictive in the includes (don't include QtCore, just figure out the individual items I need and include them)?

  2. #2
    Join Date
    Aug 2006
    Location
    Madison, WI USA
    Posts
    153
    Thanks
    35
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Update to 4.4.2 generates new warnings

    Quote Originally Posted by mclark View Post
    Is this showing up because of "#include <QtCore>" in some of my header files? Shall I be more restrictive in the includes (don't include QtCore, just figure out the individual items I need and include them)?
    I removed the QtCore includes and replaced with specific object includes. Also used #pragma warning(disable: 4512) and #pragma warning(default: 4512) to bracket any offending Qt includes. Qt does seem to spew lots of warnings when the VisualStudio warning level is set to 4.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.