Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35620

Visual C++ warning level 4 (/W4) support

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Incomplete
    • P4: Low
    • None
    • 5.2.0
    • None
    • Window 8 Professional x64.
      Visual Studio 2012 update 4.
      OpenSSL 1.0.1e.
      ICU 52.1.
      Qt 5.2.0.
      Any MSVS C++ project that uses Qt and compiler warning level 4 (/W4).

    Description

      Usage of Qt and Visual C++ (Visual Studio 2010/2012) with compiler warning level 4 (the highest one after /Wall; /Wall gives too much warnings related to Windows platform headers) gives some (minor) warnings pointing to these public Qt headers:

      1. qtbase/src/corelib/tools/qhash.h
      2. qtbase/src/corelib/tools/qlist.h
      3. qtbase/src/corelib/tools/qmap.h
      4. qtbase/src/corelib/tools/qvector.h
      5. qtbase/src/corelib/kernel/qmetatype.h
      6. qtbase/src/corelib/kernel/qobject_impl.h
      7. qtbase/src/corelib/tools/qstring.h

      The warnings are:

      1. Compiler Warning (level 4) C4127
      2. Compiler Warning (level 4) C4512

      Suggested solution is to switch off such warnings by special includes at the start/end of these headers (like Boost C++ Libraries do) or use MSVC specific pragmas at the warning points (see msvc_warn.patch).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            mabrarov Marat Abrarov
            Votes:
            8 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes