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

qfilesystemengine_unix.cpp compilation error on QNX

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.15.1
    • Fix Version/s: 5.15.2
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:
      QNX 7.1, x86_64, qcc compiler
      Error occurred while building qmake from the configure script.
    • Platform/s:
      QNX
    • Commits:
      d8d7dbb65a386162285fe56dd5dc337793dab9e8 (qt/qtbase/dev) 704b2b2a321d30bcb441dfc32279b8a447ca106e (qt/qtbase/5.15)

      Description

      The fillFromDirEnt function assigns 0 to entryFlags and knownFlagsMask, but that is not allowed in C++ without the permissive flag, resulting in a compilation error.

      Simple fix:

      diff --git a/src/corelib/io/qfilesystemengine_unix.cpp b/src/corelib/io/qfilesystemengine_unix.cpp
      index 196081eaa2..a2c0c66e02 100644
      --- a/src/corelib/io/qfilesystemengine_unix.cpp
      +++ b/src/corelib/io/qfilesystemengine_unix.cpp
      @@ -505,8 +505,8 @@ void QFileSystemMetaData::fillFromStatBuf(const QT_STATBUF &statBuffer)
       void QFileSystemMetaData::fillFromDirEnt(const QT_DIRENT &entry)
       {
       #if defined(_DEXTRA_FIRST)
      -    knownFlagsMask = 0;
      -    entryFlags = 0;
      +    knownFlagsMask = MetaDataFlags(0);
      +    entryFlags = MetaDataFlags(0);
           for (dirent_extra *extra = _DEXTRA_FIRST(&entry); _DEXTRA_VALID(extra, &entry);
                extra = _DEXTRA_NEXT(extra)) {
               if (extra->d_type == _DTYPE_STAT || extra->d_type == _DTYPE_LSTAT) {
       

        Attachments

        For Gerrit Dashboard: QTBUG-86585
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            elahav Elad Lahav
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes