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

qfilesystemengine_unix.cpp compilation error on QNX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.15.2
    • 5.15.1
    • Core: I/O
    • None
    • QNX 7.1, x86_64, qcc compiler
      Error occurred while building qmake from the configure script.
    • QNX
    • 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

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

        Activity

          People

            thiago Thiago Macieira
            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