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

[MSVC] When building QT6 emits an warning C4267 is treated as an error C2220 on MSVC

    XMLWordPrintable

Details

    • Windows
    • f11bc388508359b070320866eab4c917cb4c4739

    Description

      Steps to reproduce

      1. open VS2019 x64 tools command
      2. git clone qt/qt5.git - Qt5 super module F:\gitP\qt\qt6\build_x86
      3. set CL=/D_CRT_DECLARE_NONSTDC_NAMES %CL%
      4. ..\configure -developer-build -release -confirm-license -opensource -nomake tests 2>&1
      5. cmake --build . --parallel --verbose 2>&1

       

      Error info:

      F:\gitP\qt\qt6\build_x86\qtbase\include\QtCore\6.3.0\QtCore\private\../../../../../../../qtbase/src/corelib/tools/qoffsetstringarray_p.h(111): error C2220: the following warning is treated as an error
      
       F:\gitP\qt\qt6\build_x86\qtbase\include\QtCore\6.3.0\QtCore\private\../../../../../../../qtbase/src/corelib/tools/qoffsetstringarray_p.h(111): warning C4267: '=': conversion from 'size_t' to '_Ty', possible loss of data
       with
       [
       _Ty=MinifiedOffsetType
       ]
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            april April Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes