qt5-qtbase-5.15.18-1.fc44

List of Findings

Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/lib64/qt5/mkspecs/features/data/mac/objc_namespace.sh:73:18: warning[SC2034]: key appears unused. Verify use (or export if used externally).
#   71|   
#   72|   get_entry() {
#   73|->     local map=$1 key=$2
#   74|       local i="${map}_map_${2}"
#   75|       printf '%s' "${!i}"

Error: SHELLCHECK_WARNING (CWE-457): [#def2]
/usr/lib64/qt5/mkspecs/features/data/mac/objc_namespace.sh:93:42: warning[SC2154]: original_ld is referenced but not assigned.
#   91|   
#   92|   link_binary() {
#   93|->     (PS4=; test $silent -ne 1 && set -x; $original_ld "${linker_arguments[@]}" "$@") 2>&1 || exit 1
#   94|   }
#   95|   

Error: SHELLCHECK_WARNING (CWE-398): [#def3]
/usr/lib64/qt5/mkspecs/features/data/mac/objc_namespace.sh:175:9: warning[SC2178]: Variable was used as an array but is now assigned a string.
#  173|           fi
#  174|   
#  175|->         classname=$(get_entry address_to_classname $classname_address)
#  176|           if [ -z "$classname" ]; then
#  177|               echo " 💥  Failed to resolve class name for address '$classname_address'"

Error: SHELLCHECK_WARNING (CWE-670): [#def4]
/usr/lib64/qt5/mkspecs/features/data/mac/objc_namespace.sh:176:18: warning[SC2128]: Expanding an array without an index only gives the first element.
#  174|   
#  175|           classname=$(get_entry address_to_classname $classname_address)
#  176|->         if [ -z "$classname" ]; then
#  177|               echo " 💥  Failed to resolve class name for address '$classname_address'"
#  178|               continue

Error: SHELLCHECK_WARNING (CWE-457): [#def5]
/usr/lib64/qt5/mkspecs/features/data/mac/objc_namespace.sh:181:15: warning[SC2154]: exclude_list is referenced but not assigned.
#  179|           fi
#  180|   
#  181|->         if [[ $exclude_list =~ $classname || $classname =~ $exclude_regex ]]; then
#  182|               if [ $is_metaclass -eq 1 ]; then
#  183|                   class_type="meta class"

Error: SHELLCHECK_WARNING (CWE-457): [#def6]
/usr/lib64/qt5/mkspecs/features/data/mac/objc_namespace.sh:181:60: warning[SC2154]: exclude_regex is referenced but not assigned.
#  179|           fi
#  180|   
#  181|->         if [[ $exclude_list =~ $classname || $classname =~ $exclude_regex ]]; then
#  182|               if [ $is_metaclass -eq 1 ]; then
#  183|                   class_type="meta class"

Error: SHELLCHECK_WARNING (CWE-88): [#def7]
/usr/lib64/qt5/mkspecs/features/uikit/device_destinations.sh:45:51: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#   43|   scheme=$1
#   44|   shift
#   45|-> booted_simulator=$($DIR/devices.py --state booted $@ | tail -n 1)
#   46|   echo "SIMULATOR_DEVICES = $booted_simulator"
#   47|   

Error: SHELLCHECK_WARNING (CWE-477): [#def8]
/usr/lib64/qt5/mkspecs/features/uikit/device_destinations.sh:60:45: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   58|               if [ "$val" = "iOS" ]; then
#   59|                   echo "HARDWARE_DEVICES += $id"
#   60|->             elif [ "$val" = "iOS Simulator" -a "$id" != "$booted_simulator" ]; then
#   61|                   echo "SIMULATOR_DEVICES += $id"
#   62|               elif [ "$val" = "tvOS" ]; then

Error: SHELLCHECK_WARNING (CWE-477): [#def9]
/usr/lib64/qt5/mkspecs/features/uikit/device_destinations.sh:64:46: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   62|               elif [ "$val" = "tvOS" ]; then
#   63|                   echo "HARDWARE_DEVICES += $id"
#   64|->             elif [ "$val" = "tvOS Simulator" -a "$id" != "$booted_simulator" ]; then
#   65|                   echo "SIMULATOR_DEVICES += $id"
#   66|               elif [ "$val" = "watchOS" ]; then

Error: SHELLCHECK_WARNING (CWE-477): [#def10]
/usr/lib64/qt5/mkspecs/features/uikit/device_destinations.sh:68:49: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   66|               elif [ "$val" = "watchOS" ]; then
#   67|                   echo "HARDWARE_DEVICES += $id"
#   68|->             elif [ "$val" = "watchOS Simulator" -a "$id" != "$booted_simulator" ]; then
#   69|                   echo "SIMULATOR_DEVICES += $id"
#   70|               fi

Error: CPPCHECK_WARNING (CWE-758): [#def11]
qtbase-everywhere-src-5.15.18/config.tests/x86_simd/main.cpp:130: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
#  128|       unsigned long long ull;
#  129|       if (_rdrand64_step(&ull))
#  130|->         return 1;
#  131|   #  endif
#  132|   }

Error: CPPCHECK_WARNING (CWE-758): [#def12]
qtbase-everywhere-src-5.15.18/config.tests/x86_simd/main.cpp:147: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
#  145|       unsigned long long ull;
#  146|       if (_rdseed64_step(&ull))
#  147|->         return 1;
#  148|   #  endif
#  149|   }

Error: COMPILER_WARNING (CWE-477): [#def13]
qtbase-everywhere-src-5.15.18/examples/corelib/serialization/cbordump/main.cpp: scope_hint: In lambda function
qtbase-everywhere-src-5.15.18/examples/corelib/serialization/cbordump/main.cpp:441:18: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  441 |     auto print = [=](const char *descr, const char *fmt, ...) {
#      |                  ^
qtbase-everywhere-src-5.15.18/examples/corelib/serialization/cbordump/main.cpp:441:18: note: add explicit ‘this’ or ‘*this’ capture
#  439|               printf(" (overlong)");
#  440|       };
#  441|->     auto print = [=](const char *descr, const char *fmt, ...) {
#  442|           qint64 prevOffset = offset;
#  443|           offset = reader.currentOffset();

Error: COMPILER_WARNING (CWE-477): [#def14]
qtbase-everywhere-src-5.15.18/examples/corelib/serialization/cbordump/main.cpp: scope_hint: In lambda function
qtbase-everywhere-src-5.15.18/examples/corelib/serialization/cbordump/main.cpp:475:24: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#  475 |     auto printString = [=](const char *descr) {
#      |                        ^
qtbase-everywhere-src-5.15.18/examples/corelib/serialization/cbordump/main.cpp:475:24: note: add explicit ‘this’ or ‘*this’ capture
#  473|       };
#  474|   
#  475|->     auto printString = [=](const char *descr) {
#  476|           QByteArray indent(nestingLevel * 2, ' ');
#  477|           const char *chunkStr = (reader.isLengthKnown() ? "" : "chunk ");

Error: COMPILER_WARNING: [#def15]
qtbase-everywhere-src-5.15.18/examples/corelib/threads/mandelbrot/renderthread.cpp: scope_hint: In constructor ‘RenderThread::RenderThread(QObject*)’
qtbase-everywhere-src-5.15.18/examples/corelib/threads/mandelbrot/renderthread.cpp:61:60: warning[-Wdeprecated-enum-float-conversion]: arithmetic between floating-point type ‘double’ and enumeration type ‘RenderThread::<unnamed enum>’ is deprecated
#   61 |         colormap[i] = rgbFromWaveLength(380.0 + (i * 400.0 / ColormapSize));
#      |                                                  ~~~~~~~~~~^~~~~~~~~~~~~~
#   59|   {
#   60|       for (int i = 0; i < ColormapSize; ++i)
#   61|->         colormap[i] = rgbFromWaveLength(380.0 + (i * 400.0 / ColormapSize));
#   62|   }
#   63|   //! [0]

Error: COMPILER_WARNING (CWE-477): [#def16]
qtbase-everywhere-src-5.15.18/examples/dbus/complexpingpong/complexping.cpp: scope_hint: In function ‘int main(int, char**)’
qtbase-everywhere-src-5.15.18/examples/dbus/complexpingpong/complexping.cpp:124:15: warning[-Wdeprecated-declarations]: ‘void QProcess::start(const QString&, QIODevice::OpenMode)’ is deprecated: Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead
#  124 |     pong.start("./complexpong");
#      |     ~~~~~~~~~~^~~~~~~~~~~~~~~~~
qtbase-everywhere-src-5.15.18/include/QtCore/qprocess.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtCore/QProcess:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/examples/dbus/complexpingpong/complexping.cpp:56: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/corelib/io/qprocess.h:168:10: note: declared here
#  168 |     void start(const QString &command, OpenMode mode = ReadWrite);
#      |          ^~~~~
#  122|   
#  123|       QProcess pong;
#  124|->     pong.start("./complexpong");
#  125|   
#  126|       app.exec();

Error: COMPILER_WARNING: [#def17]
qtbase-everywhere-src-5.15.18/examples/qtconcurrent/progressdialog/main.cpp:83:22: warning[-Wunused-but-set-variable=]: variable ‘v’ set but not used
#   83 |         volatile int v = 0;
#      |                      ^
#   81|       std::function<void(int&)> spin = [](int &iteration) {
#   82|           const int work = 1000 * 1000 * 40;
#   83|->         volatile int v = 0;
#   84|           for (int j = 0; j < work; ++j)
#   85|               ++v;

Error: COMPILER_WARNING: [#def18]
qtbase-everywhere-src-5.15.18/examples/qtconcurrent/progressdialog/main.cpp: scope_hint: In lambda function
qtbase-everywhere-src-5.15.18/examples/qtconcurrent/progressdialog/main.cpp:85:15: warning[-Wvolatile]: ‘++’ expression of ‘volatile’-qualified type is deprecated
#   85 |             ++v;
#      |               ^
#   83|           volatile int v = 0;
#   84|           for (int j = 0; j < work; ++j)
#   85|->             ++v;
#   86|   
#   87|           qDebug() << "iteration" << iteration << "in thread" << QThread::currentThreadId();

Error: COMPILER_WARNING (CWE-477): [#def19]
qtbase-everywhere-src-5.15.18/examples/sql/drilldown/informationwindow.cpp: scope_hint: In lambda function
qtbase-everywhere-src-5.15.18/examples/sql/drilldown/informationwindow.cpp:87:57: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#   87 |     connect(descriptionEditor, &QTextEdit::textChanged, [=]() {
#      |                                                         ^
qtbase-everywhere-src-5.15.18/examples/sql/drilldown/informationwindow.cpp:87:57: note: add explicit ‘this’ or ‘*this’ capture
#   85|   
#   86|   //! [4]
#   87|->     connect(descriptionEditor, &QTextEdit::textChanged, [=]() {
#   88|           enableButtons();
#   89|       });

Error: COMPILER_WARNING (CWE-477): [#def20]
qtbase-everywhere-src-5.15.18/examples/sql/drilldown/informationwindow.cpp: scope_hint: In lambda function
qtbase-everywhere-src-5.15.18/examples/sql/drilldown/informationwindow.cpp:90:83: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#   90 |     connect(imageFileEditor, QOverload<int>::of(&QComboBox::currentIndexChanged), [=]() {
#      |                                                                                   ^
qtbase-everywhere-src-5.15.18/examples/sql/drilldown/informationwindow.cpp:90:83: note: add explicit ‘this’ or ‘*this’ capture
#   88|           enableButtons();
#   89|       });
#   90|->     connect(imageFileEditor, QOverload<int>::of(&QComboBox::currentIndexChanged), [=]() {
#   91|           enableButtons();
#   92|       });

Error: COMPILER_WARNING (CWE-477): [#def21]
qtbase-everywhere-src-5.15.18/examples/vulkan/hellovulkancubes/mainwindow.cpp: scope_hint: In lambda function
qtbase-everywhere-src-5.15.18/examples/vulkan/hellovulkancubes/mainwindow.cpp:92:61: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#   92 |     connect(newButton, &QPushButton::clicked, vulkanWindow, [=] {
#      |                                                             ^
qtbase-everywhere-src-5.15.18/examples/vulkan/hellovulkancubes/mainwindow.cpp:92:61: note: add explicit ‘this’ or ‘*this’ capture
#   90|   
#   91|       connect(quitButton, &QPushButton::clicked, qApp, &QCoreApplication::quit);
#   92|->     connect(newButton, &QPushButton::clicked, vulkanWindow, [=] {
#   93|           vulkanWindow->addNew();
#   94|           m_count = vulkanWindow->instanceCount();

Error: COMPILER_WARNING: [#def22]
qtbase-everywhere-src-5.15.18/examples/widgets/animation/sub-attaq/mainwindow.cpp: scope_hint: In constructor ‘MainWindow::MainWindow(QWidget*)’
qtbase-everywhere-src-5.15.18/examples/widgets/animation/sub-attaq/mainwindow.cpp:72:50: warning[-Wdeprecated-enum-enum-conversion]: bitwise operation between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#   72 |     newAction->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_N));
#      |                                         ~~~~~~~~~^~~~~~~~~~~
#   70|   
#   71|       QAction *newAction = file->addAction(tr("New Game"));
#   72|->     newAction->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_N));
#   73|       QAction *quitAction = file->addAction(tr("Quit"));
#   74|       quitAction->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Q));

Error: COMPILER_WARNING: [#def23]
qtbase-everywhere-src-5.15.18/examples/widgets/animation/sub-attaq/mainwindow.cpp:74:51: warning[-Wdeprecated-enum-enum-conversion]: bitwise operation between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#   74 |     quitAction->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Q));
#      |                                          ~~~~~~~~~^~~~~~~~~~~
#   72|       newAction->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_N));
#   73|       QAction *quitAction = file->addAction(tr("Quit"));
#   74|->     quitAction->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Q));
#   75|   
#   76|       if (QApplication::arguments().contains("-fullscreen")) {

Error: COMPILER_WARNING: [#def24]
qtbase-everywhere-src-5.15.18/examples/widgets/desktop/screenshot/screenshot.cpp: scope_hint: In constructor ‘Screenshot::Screenshot()’
qtbase-everywhere-src-5.15.18/examples/widgets/desktop/screenshot/screenshot.cpp:93:48: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#   93 |     quitScreenshotButton->setShortcut(Qt::CTRL + Qt::Key_Q);
#      |                                       ~~~~~~~~~^~~~~~~~~~~
#   91|       buttonsLayout->addWidget(saveScreenshotButton);
#   92|       QPushButton *quitScreenshotButton = new QPushButton(tr("Quit"), this);
#   93|->     quitScreenshotButton->setShortcut(Qt::CTRL + Qt::Key_Q);
#   94|       connect(quitScreenshotButton, &QPushButton::clicked, this, &QWidget::close);
#   95|       buttonsLayout->addWidget(quitScreenshotButton);

Error: COMPILER_WARNING: [#def25]
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/3rdparty/fbm.c:105:20: warning[-Warray-parameter=]: argument 1 of type ‘float[3]’ with mismatched bound
#  105 | float noise3(float vec[3])
#      |              ~~~~~~^~~~~~
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/3rdparty/fbm.c:18: included_from: Included from here.
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/3rdparty/fbm.h:29:20: note: previously declared as ‘float[]’
#   29 | float noise3(float vec[]);
#      |              ~~~~~~^~~~~
#  103|   
#  104|   
#  105|-> float noise3(float vec[3])
#  106|   {
#  107|       int bx0, bx1, by0, by1, bz0, bz1, b00, b10, b01, b11;

Error: CPPCHECK_WARNING (CWE-682): [#def26]
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/glbuffers.h:224: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
#  222|               switch (desc->field) {
#  223|               case VertexDescription::Position:
#  224|->                 glVertexPointer(desc->count, desc->type, sizeof(T), BUFFER_OFFSET(desc->offset));
#  225|                   glEnableClientState(GL_VERTEX_ARRAY);
#  226|                   break;

Error: CPPCHECK_WARNING (CWE-682): [#def27]
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/glbuffers.h:228: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
#  226|                   break;
#  227|               case VertexDescription::TexCoord:
#  228|->                 glTexCoordPointer(desc->count, desc->type, sizeof(T), BUFFER_OFFSET(desc->offset));
#  229|                   glEnableClientState(GL_TEXTURE_COORD_ARRAY);
#  230|                   break;

Error: CPPCHECK_WARNING (CWE-682): [#def28]
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/glbuffers.h:232: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
#  230|                   break;
#  231|               case VertexDescription::Normal:
#  232|->                 glNormalPointer(desc->type, sizeof(T), BUFFER_OFFSET(desc->offset));
#  233|                   glEnableClientState(GL_NORMAL_ARRAY);
#  234|                   break;

Error: CPPCHECK_WARNING (CWE-682): [#def29]
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/glbuffers.h:236: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
#  234|                   break;
#  235|               case VertexDescription::Color:
#  236|->                 glColorPointer(desc->count, desc->type, sizeof(T), BUFFER_OFFSET(desc->offset));
#  237|                   glEnableClientState(GL_COLOR_ARRAY);
#  238|                   break;

Error: COMPILER_WARNING (CWE-477): [#def30]
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/scene.cpp: scope_hint: In member function ‘virtual void Scene::mouseMoveEvent(QGraphicsSceneMouseEvent*)’
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/scene.cpp:906:32: warning[-Wdeprecated-declarations]: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead
#  906 |     if (event->buttons() & Qt::MidButton) {
#      |                                ^~~~~~~~~
qtbase-everywhere-src-5.15.18/include/QtCore/qnamespace.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/corelib/kernel/qobjectdefs.h:48: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtCore/qobjectdefs.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/corelib/kernel/qobject.h:46: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtCore/qobject.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/corelib/animation/qabstractanimation.h:43: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtCore/qabstractanimation.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtCore/QtCore:6: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtOpenGL/QtOpenGLDepends:3: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtOpenGL/QtOpenGL:3: included_from: Included from here.
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/glextensions.h:54: included_from: Included from here.
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/glbuffers.h:55: included_from: Included from here.
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/scene.h:54: included_from: Included from here.
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/scene.cpp:51: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/corelib/global/qnamespace.h:138:9: note: declared here
#  138 |         MidButton Q_DECL_ENUMERATOR_DEPRECATED_X("MidButton is deprecated. Use MiddleButton instead") = MiddleButton,
#      |         ^~~~~~~~~
#  904|       }
#  905|   
#  906|->     if (event->buttons() & Qt::MidButton) {
#  907|           m_trackBalls[2].move(pixelPosToViewPos(event->scenePos()), QQuaternion());
#  908|           event->accept();

Error: COMPILER_WARNING (CWE-477): [#def31]
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/scene.cpp: scope_hint: In member function ‘virtual void Scene::mousePressEvent(QGraphicsSceneMouseEvent*)’
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/scene.cpp:930:32: warning[-Wdeprecated-declarations]: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead
#  930 |     if (event->buttons() & Qt::MidButton) {
#      |                                ^~~~~~~~~
qtbase-everywhere-src-5.15.18/src/corelib/global/qnamespace.h:138:9: note: declared here
#  138 |         MidButton Q_DECL_ENUMERATOR_DEPRECATED_X("MidButton is deprecated. Use MiddleButton instead") = MiddleButton,
#      |         ^~~~~~~~~
#  928|       }
#  929|   
#  930|->     if (event->buttons() & Qt::MidButton) {
#  931|           m_trackBalls[2].push(pixelPosToViewPos(event->scenePos()), QQuaternion());
#  932|           event->accept();

Error: COMPILER_WARNING (CWE-477): [#def32]
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/scene.cpp: scope_hint: In member function ‘virtual void Scene::mouseReleaseEvent(QGraphicsSceneMouseEvent*)’
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/boxes/scene.cpp:952:32: warning[-Wdeprecated-declarations]: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead
#  952 |     if (event->button() == Qt::MidButton) {
#      |                                ^~~~~~~~~
qtbase-everywhere-src-5.15.18/src/corelib/global/qnamespace.h:138:9: note: declared here
#  138 |         MidButton Q_DECL_ENUMERATOR_DEPRECATED_X("MidButton is deprecated. Use MiddleButton instead") = MiddleButton,
#      |         ^~~~~~~~~
#  950|       }
#  951|   
#  952|->     if (event->button() == Qt::MidButton) {
#  953|           m_trackBalls[2].release(pixelPosToViewPos(event->scenePos()), QQuaternion());
#  954|           event->accept();

Error: COMPILER_WARNING: [#def33]
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/chip/mainwindow.cpp: scope_hint: In member function ‘void MainWindow::populateScene()’
qtbase-everywhere-src-5.15.18/examples/widgets/graphicsview/chip/mainwindow.cpp:98:9: warning[-Wunused-but-set-variable=]: variable ‘nitems’ set but not used
#   98 |     int nitems = 0;
#      |         ^~~~~~
#   96|       // Populate scene
#   97|       int xx = 0;
#   98|->     int nitems = 0;
#   99|       for (int i = -11000; i < 11000; i += 110) {
#  100|           ++xx;

Error: COMPILER_WARNING: [#def34]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/addressbook/addresswidget.cpp: scope_hint: In member function ‘void AddressWidget::setupTabs()’
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/addressbook/addresswidget.cpp:162:25: warning[-Wrange-loop-construct]: loop variable ‘str’ of type ‘const QString&’ binds to a temporary constructed from type ‘const char* const’
#  162 |     for (const QString &str : groups) {
#      |                         ^~~
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/addressbook/addresswidget.cpp:162:25: note: use non-reference type ‘const QString’ to make the copy explicit or ‘const char* const&’ to prevent copying
#  160|       const auto groups = { "ABC", "DEF", "GHI", "JKL", "MNO", "PQR", "STU", "VW", "XYZ" };
#  161|   
#  162|->     for (const QString &str : groups) {
#  163|           const auto regExp = QRegularExpression(QString("^[%1].*").arg(str),
#  164|                                                  QRegularExpression::CaseInsensitiveOption);

Error: COMPILER_WARNING: [#def35]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/chart/pieview.cpp: scope_hint: In member function ‘virtual void PieView::paintEvent(QPaintEvent*)’
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/chart/pieview.cpp:358:9: warning[-Wunused-but-set-variable=]: variable ‘keyNumber’ set but not used
#  358 |     int keyNumber = 0;
#      |         ^~~~~~~~~
#  356|       painter.restore();
#  357|   
#  358|->     int keyNumber = 0;
#  359|   
#  360|       for (row = 0; row < model()->rowCount(rootIndex()); ++row) {

Error: COMPILER_WARNING (CWE-477): [#def36]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/pixelator/mainwindow.cpp: scope_hint: In member function ‘void MainWindow::printImage()’
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/pixelator/mainwindow.cpp:200:37: warning[-Wdeprecated-declarations]: ‘QRect QPrinter::pageRect() const’ is deprecated: Use pageLayout().paintRectPixels(resolution()) instead.
#  200 |     double xscale = printer.pageRect().width() / double(sourceWidth);
#      |                     ~~~~~~~~~~~~~~~~^~
qtbase-everywhere-src-5.15.18/include/QtPrintSupport/qprinter.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtPrintSupport/QPrinter:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/pixelator/mainwindow.cpp:59: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.h:259:11: note: declared here
#  259 |     QRect pageRect() const;
#      |           ^~~~~~~~
#  198|       painter.save();
#  199|   
#  200|->     double xscale = printer.pageRect().width() / double(sourceWidth);
#  201|       double yscale = printer.pageRect().height() / double(sourceHeight);
#  202|       double scale = qMin(xscale, yscale);

Error: COMPILER_WARNING (CWE-477): [#def37]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/pixelator/mainwindow.cpp:201:37: warning[-Wdeprecated-declarations]: ‘QRect QPrinter::pageRect() const’ is deprecated: Use pageLayout().paintRectPixels(resolution()) instead.
#  201 |     double yscale = printer.pageRect().height() / double(sourceHeight);
#      |                     ~~~~~~~~~~~~~~~~^~
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.h:259:11: note: declared here
#  259 |     QRect pageRect() const;
#      |           ^~~~~~~~
#  199|   
#  200|       double xscale = printer.pageRect().width() / double(sourceWidth);
#  201|->     double yscale = printer.pageRect().height() / double(sourceHeight);
#  202|       double scale = qMin(xscale, yscale);
#  203|   

Error: COMPILER_WARNING (CWE-477): [#def38]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/pixelator/mainwindow.cpp:204:40: warning[-Wdeprecated-declarations]: ‘QRect QPrinter::paperRect() const’ is deprecated: Use pageLayout().fullRectPixels(resolution()) instead.
#  204 |     painter.translate(printer.paperRect().x() + printer.pageRect().width() / 2,
#      |                       ~~~~~~~~~~~~~~~~~^~
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.h:257:11: note: declared here
#  257 |     QRect paperRect() const;
#      |           ^~~~~~~~~
#  202|       double scale = qMin(xscale, yscale);
#  203|   
#  204|->     painter.translate(printer.paperRect().x() + printer.pageRect().width() / 2,
#  205|                         printer.paperRect().y() + printer.pageRect().height() / 2);
#  206|       painter.scale(scale, scale);

Error: COMPILER_WARNING (CWE-477): [#def39]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/pixelator/mainwindow.cpp:204:65: warning[-Wdeprecated-declarations]: ‘QRect QPrinter::pageRect() const’ is deprecated: Use pageLayout().paintRectPixels(resolution()) instead.
#  204 |     painter.translate(printer.paperRect().x() + printer.pageRect().width() / 2,
#      |                                                 ~~~~~~~~~~~~~~~~^~
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.h:259:11: note: declared here
#  259 |     QRect pageRect() const;
#      |           ^~~~~~~~
#  202|       double scale = qMin(xscale, yscale);
#  203|   
#  204|->     painter.translate(printer.paperRect().x() + printer.pageRect().width() / 2,
#  205|                         printer.paperRect().y() + printer.pageRect().height() / 2);
#  206|       painter.scale(scale, scale);

Error: COMPILER_WARNING (CWE-477): [#def40]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/pixelator/mainwindow.cpp:205:40: warning[-Wdeprecated-declarations]: ‘QRect QPrinter::paperRect() const’ is deprecated: Use pageLayout().fullRectPixels(resolution()) instead.
#  205 |                       printer.paperRect().y() + printer.pageRect().height() / 2);
#      |                       ~~~~~~~~~~~~~~~~~^~
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.h:257:11: note: declared here
#  257 |     QRect paperRect() const;
#      |           ^~~~~~~~~
#  203|   
#  204|       painter.translate(printer.paperRect().x() + printer.pageRect().width() / 2,
#  205|->                       printer.paperRect().y() + printer.pageRect().height() / 2);
#  206|       painter.scale(scale, scale);
#  207|       painter.translate(-sourceWidth / 2, -sourceHeight / 2);

Error: COMPILER_WARNING (CWE-477): [#def41]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/pixelator/mainwindow.cpp:205:65: warning[-Wdeprecated-declarations]: ‘QRect QPrinter::pageRect() const’ is deprecated: Use pageLayout().paintRectPixels(resolution()) instead.
#  205 |                       printer.paperRect().y() + printer.pageRect().height() / 2);
#      |                                                 ~~~~~~~~~~~~~~~~^~
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.h:259:11: note: declared here
#  259 |     QRect pageRect() const;
#      |           ^~~~~~~~
#  203|   
#  204|       painter.translate(printer.paperRect().x() + printer.pageRect().width() / 2,
#  205|->                       printer.paperRect().y() + printer.pageRect().height() / 2);
#  206|       painter.scale(scale, scale);
#  207|       painter.translate(-sourceWidth / 2, -sourceHeight / 2);

Error: COMPILER_WARNING: [#def42]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/spreadsheet/spreadsheet.cpp: scope_hint: In member function ‘void SpreadSheet::createActions()’
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/spreadsheet/spreadsheet.cpp:114:42: warning[-Wdeprecated-enum-enum-conversion]: bitwise operation between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  114 |     cell_addAction->setShortcut(Qt::CTRL | Qt::Key_Plus);
#      |                                 ~~~~~~~~~^~~~~~~~~~~~~~
#  112|   
#  113|       cell_addAction = new QAction(tr("&Add"), this);
#  114|->     cell_addAction->setShortcut(Qt::CTRL | Qt::Key_Plus);
#  115|       connect(cell_addAction, &QAction::triggered, this, &SpreadSheet::actionAdd);
#  116|   

Error: COMPILER_WARNING: [#def43]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/spreadsheet/spreadsheet.cpp:118:42: warning[-Wdeprecated-enum-enum-conversion]: bitwise operation between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  118 |     cell_subAction->setShortcut(Qt::CTRL | Qt::Key_Minus);
#      |                                 ~~~~~~~~~^~~~~~~~~~~~~~~
#  116|   
#  117|       cell_subAction = new QAction(tr("&Subtract"), this);
#  118|->     cell_subAction->setShortcut(Qt::CTRL | Qt::Key_Minus);
#  119|       connect(cell_subAction, &QAction::triggered, this, &SpreadSheet::actionSubtract);
#  120|   

Error: COMPILER_WARNING: [#def44]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/spreadsheet/spreadsheet.cpp:122:42: warning[-Wdeprecated-enum-enum-conversion]: bitwise operation between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  122 |     cell_mulAction->setShortcut(Qt::CTRL | Qt::Key_multiply);
#      |                                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~
#  120|   
#  121|       cell_mulAction = new QAction(tr("&Multiply"), this);
#  122|->     cell_mulAction->setShortcut(Qt::CTRL | Qt::Key_multiply);
#  123|       connect(cell_mulAction, &QAction::triggered, this, &SpreadSheet::actionMultiply);
#  124|   

Error: COMPILER_WARNING: [#def45]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/spreadsheet/spreadsheet.cpp:126:42: warning[-Wdeprecated-enum-enum-conversion]: bitwise operation between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  126 |     cell_divAction->setShortcut(Qt::CTRL | Qt::Key_division);
#      |                                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~
#  124|   
#  125|       cell_divAction = new QAction(tr("&Divide"), this);
#  126|->     cell_divAction->setShortcut(Qt::CTRL | Qt::Key_division);
#  127|       connect(cell_divAction, &QAction::triggered, this, &SpreadSheet::actionDivide);
#  128|   

Error: COMPILER_WARNING: [#def46]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/spreadsheet/spreadsheet.cpp:130:38: warning[-Wdeprecated-enum-enum-conversion]: bitwise operation between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  130 |     fontAction->setShortcut(Qt::CTRL | Qt::Key_F);
#      |                             ~~~~~~~~~^~~~~~~~~~~
#  128|   
#  129|       fontAction = new QAction(tr("Font..."), this);
#  130|->     fontAction->setShortcut(Qt::CTRL | Qt::Key_F);
#  131|       connect(fontAction, &QAction::triggered, this, &SpreadSheet::selectFont);
#  132|   

Error: COMPILER_WARNING: [#def47]
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/storageview/main.cpp: scope_hint: In function ‘int main(int, char**)’
qtbase-everywhere-src-5.15.18/examples/widgets/itemviews/storageview/main.cpp:69:57: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#   69 |     QShortcut *refreshShortcut = new QShortcut(Qt::CTRL + Qt::Key_R, &view);
#      |                                                ~~~~~~~~~^~~~~~~~~~~
#   67|       StorageModel *model = new StorageModel(&view);
#   68|       model->refresh();
#   69|->     QShortcut *refreshShortcut = new QShortcut(Qt::CTRL + Qt::Key_R, &view);
#   70|       QObject::connect(refreshShortcut, &QShortcut::activated, model, &StorageModel::refresh);
#   71|       view.setModel(model);

Error: COMPILER_WARNING: [#def48]
qtbase-everywhere-src-5.15.18/examples/widgets/mainwindows/mainwindow/colorswatch.cpp: scope_hint: In constructor ‘ColorSwatch::ColorSwatch(const QString&, QMainWindow*, Qt::WindowFlags)’
qtbase-everywhere-src-5.15.18/examples/widgets/mainwindows/mainwindow/colorswatch.cpp:392:42: warning[-Wdeprecated-enum-enum-conversion]: bitwise operation between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  392 |         leftAction->setShortcut(Qt::CTRL | Qt::Key_W);
#      |                                 ~~~~~~~~~^~~~~~~~~~~
#  390|   
#  391|       if (colorName == QLatin1String("Black")) {
#  392|->         leftAction->setShortcut(Qt::CTRL | Qt::Key_W);
#  393|           rightAction->setShortcut(Qt::CTRL | Qt::Key_E);
#  394|           toggleViewAction()->setShortcut(Qt::CTRL | Qt::Key_R);

Error: COMPILER_WARNING: [#def49]
qtbase-everywhere-src-5.15.18/examples/widgets/mainwindows/mainwindow/colorswatch.cpp:393:43: warning[-Wdeprecated-enum-enum-conversion]: bitwise operation between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  393 |         rightAction->setShortcut(Qt::CTRL | Qt::Key_E);
#      |                                  ~~~~~~~~~^~~~~~~~~~~
#  391|       if (colorName == QLatin1String("Black")) {
#  392|           leftAction->setShortcut(Qt::CTRL | Qt::Key_W);
#  393|->         rightAction->setShortcut(Qt::CTRL | Qt::Key_E);
#  394|           toggleViewAction()->setShortcut(Qt::CTRL | Qt::Key_R);
#  395|       }

Error: COMPILER_WARNING: [#def50]
qtbase-everywhere-src-5.15.18/examples/widgets/mainwindows/mainwindow/colorswatch.cpp:394:50: warning[-Wdeprecated-enum-enum-conversion]: bitwise operation between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  394 |         toggleViewAction()->setShortcut(Qt::CTRL | Qt::Key_R);
#      |                                         ~~~~~~~~~^~~~~~~~~~~
#  392|           leftAction->setShortcut(Qt::CTRL | Qt::Key_W);
#  393|           rightAction->setShortcut(Qt::CTRL | Qt::Key_E);
#  394|->         toggleViewAction()->setShortcut(Qt::CTRL | Qt::Key_R);
#  395|       }
#  396|   }

Error: COMPILER_WARNING (CWE-477): [#def51]
qtbase-everywhere-src-5.15.18/examples/widgets/painting/fontsampler/mainwindow.cpp: scope_hint: In member function ‘void MainWindow::printPage(int, QPainter*, QPrinter*)’
qtbase-everywhere-src-5.15.18/examples/widgets/painting/fontsampler/mainwindow.cpp:323:37: warning[-Wdeprecated-declarations]: ‘QRect QPrinter::pageRect() const’ is deprecated: Use pageLayout().paintRectPixels(resolution()) instead.
#  323 |     qreal xScale = printer->pageRect().width() / width;
#      |                    ~~~~~~~~~~~~~~~~~^~
qtbase-everywhere-src-5.15.18/include/QtPrintSupport/qprinter.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtPrintSupport/QPrinter:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/examples/widgets/painting/fontsampler/mainwindow.cpp:55: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.h:259:11: note: declared here
#  259 |     QRect pageRect() const;
#      |           ^~~~~~~~
#  321|       }
#  322|   
#  323|->     qreal xScale = printer->pageRect().width() / width;
#  324|       qreal yScale = printer->pageRect().height() / height;
#  325|       qreal scale = qMin(xScale, yScale);

Error: COMPILER_WARNING (CWE-477): [#def52]
qtbase-everywhere-src-5.15.18/examples/widgets/painting/fontsampler/mainwindow.cpp:324:37: warning[-Wdeprecated-declarations]: ‘QRect QPrinter::pageRect() const’ is deprecated: Use pageLayout().paintRectPixels(resolution()) instead.
#  324 |     qreal yScale = printer->pageRect().height() / height;
#      |                    ~~~~~~~~~~~~~~~~~^~
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.h:259:11: note: declared here
#  259 |     QRect pageRect() const;
#      |           ^~~~~~~~
#  322|   
#  323|       qreal xScale = printer->pageRect().width() / width;
#  324|->     qreal yScale = printer->pageRect().height() / height;
#  325|       qreal scale = qMin(xScale, yScale);
#  326|   

Error: COMPILER_WARNING (CWE-477): [#def53]
qtbase-everywhere-src-5.15.18/examples/widgets/painting/fontsampler/mainwindow.cpp:327:46: warning[-Wdeprecated-declarations]: ‘QRect QPrinter::pageRect() const’ is deprecated: Use pageLayout().paintRectPixels(resolution()) instead.
#  327 |     qreal remainingHeight = printer->pageRect().height()/scale - height;
#      |                             ~~~~~~~~~~~~~~~~~^~
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.h:259:11: note: declared here
#  259 |     QRect pageRect() const;
#      |           ^~~~~~~~
#  325|       qreal scale = qMin(xScale, yScale);
#  326|   
#  327|->     qreal remainingHeight = printer->pageRect().height()/scale - height;
#  328|       qreal spaceHeight = (remainingHeight / 4.0) / (items.count() + 1);
#  329|       qreal interLineHeight = (remainingHeight / 4.0) / (sampleSizes.count() * items.count());

Error: COMPILER_WARNING (CWE-477): [#def54]
qtbase-everywhere-src-5.15.18/examples/widgets/painting/fontsampler/mainwindow.cpp:332:41: warning[-Wdeprecated-declarations]: ‘QRect QPrinter::pageRect() const’ is deprecated: Use pageLayout().paintRectPixels(resolution()) instead.
#  332 |     painter->translate(printer->pageRect().width() / 2.0, printer->pageRect().height() / 2.0);
#      |                        ~~~~~~~~~~~~~~~~~^~
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.h:259:11: note: declared here
#  259 |     QRect pageRect() const;
#      |           ^~~~~~~~
#  330|   
#  331|       painter->save();
#  332|->     painter->translate(printer->pageRect().width() / 2.0, printer->pageRect().height() / 2.0);
#  333|       painter->scale(scale, scale);
#  334|       painter->setBrush(QBrush(Qt::black));

Error: COMPILER_WARNING (CWE-477): [#def55]
qtbase-everywhere-src-5.15.18/examples/widgets/painting/fontsampler/mainwindow.cpp:332:76: warning[-Wdeprecated-declarations]: ‘QRect QPrinter::pageRect() const’ is deprecated: Use pageLayout().paintRectPixels(resolution()) instead.
#  332 |     painter->translate(printer->pageRect().width() / 2.0, printer->pageRect().height() / 2.0);
#      |                                                           ~~~~~~~~~~~~~~~~~^~
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.h:259:11: note: declared here
#  259 |     QRect pageRect() const;
#      |           ^~~~~~~~
#  330|   
#  331|       painter->save();
#  332|->     painter->translate(printer->pageRect().width() / 2.0, printer->pageRect().height() / 2.0);
#  333|       painter->scale(scale, scale);
#  334|       painter->setBrush(QBrush(Qt::black));

Error: COMPILER_WARNING: [#def56]
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp: scope_hint: In member function ‘void TextEdit::setupFileActions()’
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp:213:29: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  213 |     a->setShortcut(Qt::CTRL + Qt::Key_D);
#      |                    ~~~~~~~~~^~~~~~~~~~~
#  211|       a = menu->addAction(exportPdfIcon, tr("&Export PDF..."), this, &TextEdit::filePrintPdf);
#  212|       a->setPriority(QAction::LowPriority);
#  213|->     a->setShortcut(Qt::CTRL + Qt::Key_D);
#  214|       tb->addAction(a);
#  215|   

Error: COMPILER_WARNING: [#def57]
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp:220:29: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  220 |     a->setShortcut(Qt::CTRL + Qt::Key_Q);
#      |                    ~~~~~~~~~^~~~~~~~~~~
#  218|   
#  219|       a = menu->addAction(tr("&Quit"), this, &QWidget::close);
#  220|->     a->setShortcut(Qt::CTRL + Qt::Key_Q);
#  221|   }
#  222|   

Error: COMPILER_WARNING: [#def58]
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp: scope_hint: In member function ‘void TextEdit::setupTextActions()’
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp:270:42: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  270 |     actionTextBold->setShortcut(Qt::CTRL + Qt::Key_B);
#      |                                 ~~~~~~~~~^~~~~~~~~~~
#  268|       const QIcon boldIcon = QIcon::fromTheme("format-text-bold", QIcon(rsrcPath + "/textbold.png"));
#  269|       actionTextBold = menu->addAction(boldIcon, tr("&Bold"), this, &TextEdit::textBold);
#  270|->     actionTextBold->setShortcut(Qt::CTRL + Qt::Key_B);
#  271|       actionTextBold->setPriority(QAction::LowPriority);
#  272|       QFont bold;

Error: COMPILER_WARNING: [#def59]
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp:281:44: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  281 |     actionTextItalic->setShortcut(Qt::CTRL + Qt::Key_I);
#      |                                   ~~~~~~~~~^~~~~~~~~~~
#  279|       actionTextItalic = menu->addAction(italicIcon, tr("&Italic"), this, &TextEdit::textItalic);
#  280|       actionTextItalic->setPriority(QAction::LowPriority);
#  281|->     actionTextItalic->setShortcut(Qt::CTRL + Qt::Key_I);
#  282|       QFont italic;
#  283|       italic.setItalic(true);

Error: COMPILER_WARNING: [#def60]
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp:290:47: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  290 |     actionTextUnderline->setShortcut(Qt::CTRL + Qt::Key_U);
#      |                                      ~~~~~~~~~^~~~~~~~~~~
#  288|       const QIcon underlineIcon = QIcon::fromTheme("format-text-underline", QIcon(rsrcPath + "/textunder.png"));
#  289|       actionTextUnderline = menu->addAction(underlineIcon, tr("&Underline"), this, &TextEdit::textUnderline);
#  290|->     actionTextUnderline->setShortcut(Qt::CTRL + Qt::Key_U);
#  291|       actionTextUnderline->setPriority(QAction::LowPriority);
#  292|       QFont underline;

Error: COMPILER_WARNING: [#def61]
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp:302:43: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  302 |     actionAlignLeft->setShortcut(Qt::CTRL + Qt::Key_L);
#      |                                  ~~~~~~~~~^~~~~~~~~~~
#  300|       const QIcon leftIcon = QIcon::fromTheme("format-justify-left", QIcon(rsrcPath + "/textleft.png"));
#  301|       actionAlignLeft = new QAction(leftIcon, tr("&Left"), this);
#  302|->     actionAlignLeft->setShortcut(Qt::CTRL + Qt::Key_L);
#  303|       actionAlignLeft->setCheckable(true);
#  304|       actionAlignLeft->setPriority(QAction::LowPriority);

Error: COMPILER_WARNING: [#def62]
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp:307:45: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  307 |     actionAlignCenter->setShortcut(Qt::CTRL + Qt::Key_E);
#      |                                    ~~~~~~~~~^~~~~~~~~~~
#  305|       const QIcon centerIcon = QIcon::fromTheme("format-justify-center", QIcon(rsrcPath + "/textcenter.png"));
#  306|       actionAlignCenter = new QAction(centerIcon, tr("C&enter"), this);
#  307|->     actionAlignCenter->setShortcut(Qt::CTRL + Qt::Key_E);
#  308|       actionAlignCenter->setCheckable(true);
#  309|       actionAlignCenter->setPriority(QAction::LowPriority);

Error: COMPILER_WARNING: [#def63]
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp:312:44: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  312 |     actionAlignRight->setShortcut(Qt::CTRL + Qt::Key_R);
#      |                                   ~~~~~~~~~^~~~~~~~~~~
#  310|       const QIcon rightIcon = QIcon::fromTheme("format-justify-right", QIcon(rsrcPath + "/textright.png"));
#  311|       actionAlignRight = new QAction(rightIcon, tr("&Right"), this);
#  312|->     actionAlignRight->setShortcut(Qt::CTRL + Qt::Key_R);
#  313|       actionAlignRight->setCheckable(true);
#  314|       actionAlignRight->setPriority(QAction::LowPriority);

Error: COMPILER_WARNING: [#def64]
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp:317:46: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  317 |     actionAlignJustify->setShortcut(Qt::CTRL + Qt::Key_J);
#      |                                     ~~~~~~~~~^~~~~~~~~~~
#  315|       const QIcon fillIcon = QIcon::fromTheme("format-justify-fill", QIcon(rsrcPath + "/textjustify.png"));
#  316|       actionAlignJustify = new QAction(fillIcon, tr("&Justify"), this);
#  317|->     actionAlignJustify->setShortcut(Qt::CTRL + Qt::Key_J);
#  318|       actionAlignJustify->setCheckable(true);
#  319|       actionAlignJustify->setPriority(QAction::LowPriority);

Error: COMPILER_WARNING: [#def65]
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp:322:44: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  322 |     actionIndentMore->setShortcut(Qt::CTRL + Qt::Key_BracketRight);
#      |                                   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
#  320|       const QIcon indentMoreIcon = QIcon::fromTheme("format-indent-more", QIcon(rsrcPath + "/format-indent-more.png"));
#  321|       actionIndentMore = menu->addAction(indentMoreIcon, tr("&Indent"), this, &TextEdit::indent);
#  322|->     actionIndentMore->setShortcut(Qt::CTRL + Qt::Key_BracketRight);
#  323|       actionIndentMore->setPriority(QAction::LowPriority);
#  324|       const QIcon indentLessIcon = QIcon::fromTheme("format-indent-less", QIcon(rsrcPath + "/format-indent-less.png"));

Error: COMPILER_WARNING: [#def66]
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp:326:44: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  326 |     actionIndentLess->setShortcut(Qt::CTRL + Qt::Key_BracketLeft);
#      |                                   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
#  324|       const QIcon indentLessIcon = QIcon::fromTheme("format-indent-less", QIcon(rsrcPath + "/format-indent-less.png"));
#  325|       actionIndentLess = menu->addAction(indentLessIcon, tr("&Unindent"), this, &TextEdit::unindent);
#  326|->     actionIndentLess->setShortcut(Qt::CTRL + Qt::Key_BracketLeft);
#  327|       actionIndentLess->setPriority(QAction::LowPriority);
#  328|   

Error: COMPILER_WARNING: [#def67]
qtbase-everywhere-src-5.15.18/examples/widgets/richtext/textedit/textedit.cpp:362:50: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  362 |     actionToggleCheckState->setShortcut(Qt::CTRL + Qt::Key_K);
#      |                                         ~~~~~~~~~^~~~~~~~~~~
#  360|       const QIcon checkboxIcon = QIcon::fromTheme("status-checkbox-checked", QIcon(rsrcPath + "/checkbox-checked.png"));
#  361|       actionToggleCheckState = menu->addAction(checkboxIcon, tr("Chec&ked"), this, &TextEdit::setChecked);
#  362|->     actionToggleCheckState->setShortcut(Qt::CTRL + Qt::Key_K);
#  363|       actionToggleCheckState->setCheckable(true);
#  364|       actionToggleCheckState->setPriority(QAction::LowPriority);

Error: COMPILER_WARNING: [#def68]
qtbase-everywhere-src-5.15.18/examples/widgets/tools/codecs/mainwindow.cpp: scope_hint: In member function ‘void MainWindow::createMenus()’
qtbase-everywhere-src-5.15.18/examples/widgets/tools/codecs/mainwindow.cpp:204:42: warning[-Wdeprecated-enum-enum-conversion]: arithmetic between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  204 |     encodingAction->setShortcut(Qt::CTRL + Qt::Key_E);
#      |                                 ~~~~~~~~~^~~~~~~~~~~
#  202|       auto toolMenu =  menuBar()->addMenu(tr("&Tools"));
#  203|       auto encodingAction = toolMenu->addAction(tr("Encodings"), this, &MainWindow::encodingDialog);
#  204|->     encodingAction->setShortcut(Qt::CTRL + Qt::Key_E);
#  205|       encodingAction->setToolTip(tr("Shows a dialog allowing to convert to common encoding in programming languages."));
#  206|   

Error: COMPILER_WARNING (CWE-477): [#def69]
qtbase-everywhere-src-5.15.18/examples/widgets/widgets/icons/mainwindow.cpp: scope_hint: In member function ‘QWidget* MainWindow::createIconSizeGroupBox()’
qtbase-everywhere-src-5.15.18/examples/widgets/widgets/icons/mainwindow.cpp:375:54: warning[-Wdeprecated-declarations]: ‘void QButtonGroup::buttonToggled(int, bool)’ is deprecated: Use QButtonGroup::idToggled(int, bool) instead
#  375 |     connect(sizeButtonGroup, QOverload<int, bool>::of(&QButtonGroup::buttonToggled),
#      |                              ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
qtbase-everywhere-src-5.15.18/include/QtWidgets/qbuttongroup.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtWidgets/QButtonGroup:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/examples/widgets/widgets/icons/mainwindow.cpp:57: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/widgets/widgets/qbuttongroup.h:96:10: note: declared here
#   96 |     void buttonToggled(int, bool);
#      |          ^~~~~~~~~~~~~
#  373|       sizeButtonGroup->setExclusive(true);
#  374|   
#  375|->     connect(sizeButtonGroup, QOverload<int, bool>::of(&QButtonGroup::buttonToggled),
#  376|               this, &MainWindow::changeSize);
#  377|   

Error: COMPILER_WARNING (CWE-477): [#def70]
qtbase-everywhere-src-5.15.18/examples/widgets/widgets/tooltips/sortingbox.cpp: scope_hint: In member function ‘virtual void SortingBox::resizeEvent(QResizeEvent*)’
qtbase-everywhere-src-5.15.18/examples/widgets/widgets/tooltips/sortingbox.cpp:132:47: warning[-Wdeprecated-declarations]: ‘QStyle::PM_DefaultTopLevelMargin’ is deprecated
#  132 |     int margin = style()->pixelMetric(QStyle::PM_DefaultTopLevelMargin);
#      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~
qtbase-everywhere-src-5.15.18/include/QtWidgets/qstyle.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtWidgets/QStyle:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/examples/widgets/widgets/tooltips/sortingbox.cpp:57: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/widgets/styles/qstyle.h:541:9: note: declared here
#  541 |         PM_DefaultTopLevelMargin Q_DECL_ENUMERATOR_DEPRECATED,
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~
#  130|   void SortingBox::resizeEvent(QResizeEvent * /* event */)
#  131|   {
#  132|->     int margin = style()->pixelMetric(QStyle::PM_DefaultTopLevelMargin);
#  133|       int x = width() - margin;
#  134|       int y = height() - margin;

Error: COMPILER_WARNING (CWE-477): [#def71]
qtbase-everywhere-src-5.15.18/examples/widgets/widgets/tooltips/sortingbox.cpp: scope_hint: In member function ‘int SortingBox::updateButtonGeometry(QToolButton*, int, int)’
qtbase-everywhere-src-5.15.18/examples/widgets/widgets/tooltips/sortingbox.cpp:249:43: warning[-Wdeprecated-declarations]: ‘QStyle::PM_DefaultLayoutSpacing’ is deprecated
#  249 |            - style()->pixelMetric(QStyle::PM_DefaultLayoutSpacing);
#      |                                           ^~~~~~~~~~~~~~~~~~~~~~~
qtbase-everywhere-src-5.15.18/src/widgets/styles/qstyle.h:543:9: note: declared here
#  543 |         PM_DefaultLayoutSpacing Q_DECL_ENUMERATOR_DEPRECATED,
#      |         ^~~~~~~~~~~~~~~~~~~~~~~
#  247|   
#  248|       return y - size.rheight()
#  249|->            - style()->pixelMetric(QStyle::PM_DefaultLayoutSpacing);
#  250|   }
#  251|   //! [20]

Error: COMPILER_WARNING: [#def72]
qtbase-everywhere-src-5.15.18/src/gui/rhi/qrhivulkan.cpp:47: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/3rdparty/VulkanMemoryAllocator/vk_mem_alloc.h: scope_hint: In member function ‘virtual void VmaBlockMetadata_Generic::PrintDetailedMap(VmaJsonWriter&) const’
qtbase-everywhere-src-5.15.18/src/3rdparty/VulkanMemoryAllocator/vk_mem_alloc.h:7797:12: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
# 7797 |     size_t i = 0;
#      |            ^
# 7795|           m_FreeCount); // unusedRangeCount
# 7796|   
# 7797|->     size_t i = 0;
# 7798|       for(VmaSuballocationList::const_iterator suballocItem = m_Suballocations.cbegin();
# 7799|           suballocItem != m_Suballocations.cend();

Error: CPPCHECK_WARNING (CWE-476): [#def73]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-greek.c:372: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: shapedChars
#  370|       assert(shaper_item->item.script == HB_Script_Greek);
#  371|   
#  372|->     *shapedChars = *uc;
#  373|       logClusters[0] = 0;
#  374|   

Error: CPPCHECK_WARNING (CWE-476): [#def74]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-hangul.c:193: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: logClusters
#  191|           HB_STACKARRAY(unsigned short, logClusters, len);
#  192|           for (i = 0; i < len; ++i)
#  193|->             logClusters[i] = i;
#  194|           item->log_clusters = logClusters;
#  195|   

Error: CPPCHECK_WARNING (CWE-562): [#def75]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-hangul.c:194: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  192|           for (i = 0; i < len; ++i)
#  193|               logClusters[i] = i;
#  194|->         item->log_clusters = logClusters;
#  195|   
#  196|           HB_OpenTypeShape(item, /*properties*/0);

Error: CPPCHECK_WARNING (CWE-476): [#def76]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-hebrew.c:83: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: shapedChars
#   81|   
#   82|           HB_STACKARRAY(HB_UChar16, shapedChars, 2 * shaper_item->item.length);
#   83|->         *shapedChars = *uc;
#   84|           logClusters[0] = 0;
#   85|   

Error: CPPCHECK_WARNING (CWE-401): [#def77]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-impl.c:67: error[memleak]: Memory leak: block2
#   65|   
#   66|       *perror = error;
#   67|->     return block;
#   68|   }
#   69|   

Error: CPPCHECK_WARNING (CWE-476): [#def78]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-indic.cpp:1558: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: clusters
# 1556|   
# 1557|           for (i = 0; i < len; ++i)
# 1558|->             clusters[i] = i;
# 1559|   
# 1560|           // features we should always apply

Error: CPPCHECK_WARNING (CWE-476): [#def79]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-indic.cpp:1562: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: properties
# 1560|           // features we should always apply
# 1561|           for (i = 0; i < len; ++i)
# 1562|->             properties[i] = ~(LocaProperty
# 1563|                                 | CcmpProperty
# 1564|                                 | NuktaProperty

Error: COMPILER_WARNING: [#def80]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-shaper-all.cpp:26: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-indic.cpp: scope_hint: In function ‘void HB_IndicAttributes(HB_Script, const HB_UChar16*, hb_uint32, hb_uint32, HB_CharAttributes*)’
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-indic.cpp:1878:23: warning[-Wunused-but-set-variable=]: variable ‘uc’ set but not used
# 1878 |     const HB_UChar16 *uc = text + from;
#      |                       ^~
# 1876|   {
# 1877|       int end = from + len;
# 1878|->     const HB_UChar16 *uc = text + from;
# 1879|       attributes += from;
# 1880|       hb_uint32 i = 0;

Error: CPPCHECK_WARNING (CWE-457): [#def81]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-khmer.c:578: warning[uninitvar]: Uninitialized variable: where
#  576|           }
#  577|   
#  578|->         HB_OpenTypeShape(item, where);
#  579|           if (!HB_OpenTypePosition(item, availableGlyphs, /*doLogClusters*/FALSE))
#  580|               return FALSE;

Error: COMPILER_WARNING: [#def82]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-shaper-all.cpp:30: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-khmer.c: scope_hint: In function ‘void HB_KhmerAttributes(HB_Script, const HB_UChar16*, hb_uint32, hb_uint32, HB_CharAttributes*)’
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-khmer.c:647:23: warning[-Wunused-but-set-variable=]: variable ‘uc’ set but not used
#  647 |     const HB_UChar16 *uc = text + from;
#      |                       ^~
#  645|   {
#  646|       int end = from + len;
#  647|->     const HB_UChar16 *uc = text + from;
#  648|       hb_uint32 i = 0;
#  649|       HB_UNUSED(script);

Error: CPPCHECK_WARNING (CWE-457): [#def83]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-myanmar.c:447: warning[uninitvar]: Uninitialized variable: where
#  445|           }
#  446|   
#  447|->         HB_OpenTypeShape(item, where);
#  448|           if (!HB_OpenTypePosition(item, availableGlyphs, /*doLogClusters*/FALSE))
#  449|               return FALSE;

Error: COMPILER_WARNING: [#def84]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-shaper-all.cpp:34: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-myanmar.c: scope_hint: In function ‘void HB_MyanmarAttributes(HB_Script, const HB_UChar16*, hb_uint32, hb_uint32, HB_CharAttributes*)’
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-myanmar.c:516:23: warning[-Wunused-but-set-variable=]: variable ‘uc’ set but not used
#  516 |     const HB_UChar16 *uc = text + from;
#      |                       ^~
#  514|   {
#  515|       int end = from + len;
#  516|->     const HB_UChar16 *uc = text + from;
#  517|       hb_uint32 i = 0;
#  518|       HB_UNUSED(script);

Error: CPPCHECK_WARNING (CWE-476): [#def85]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-thai.c:406: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: break_positions
#  404|       if (len > 128) {
#  405|           break_positions = (int*) malloc (sizeof(int) * len);
#  406|->         memset (break_positions, 0, sizeof(int) * len);
#  407|           brp_size = len;
#  408|       }

Error: COMPILER_WARNING: [#def86]
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-shaper-all.cpp:29: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-tibetan.c: scope_hint: In function ‘void HB_TibetanAttributes(HB_Script, const HB_UChar16*, hb_uint32, hb_uint32, HB_CharAttributes*)’
qtbase-everywhere-src-5.15.18/src/3rdparty/harfbuzz/src/harfbuzz-tibetan.c:256:23: warning[-Wunused-but-set-variable=]: variable ‘uc’ set but not used
#  256 |     const HB_UChar16 *uc = text + from;
#      |                       ^~
#  254|   {
#  255|       int end = from + len;
#  256|->     const HB_UChar16 *uc = text + from;
#  257|       hb_uint32 i = 0;
#  258|       HB_UNUSED(script);

Error: COMPILER_WARNING (CWE-457): [#def87]
qtbase-everywhere-src-5.15.18/src/3rdparty/md4c/md4c.c:2239:7: warning[-Wmaybe-uninitialized]: ‘label_contents_line_index’ may be used uninitialized
# 2239 |     if(label_is_multiline) {
#      |       ^
qtbase-everywhere-src-5.15.18/src/3rdparty/md4c/md4c.c: scope_hint: In function ‘md_end_current_block’
qtbase-everywhere-src-5.15.18/src/3rdparty/md4c/md4c.c:2158:13: note: ‘label_contents_line_index’ was declared here
# 2158 |     MD_SIZE label_contents_line_index;
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
# 2237|       memset(def, 0, sizeof(MD_REF_DEF));
# 2238|   
# 2239|->     if(label_is_multiline) {
# 2240|           MD_CHECK(md_merge_lines_alloc(ctx, label_contents_beg, label_contents_end,
# 2241|                       lines + label_contents_line_index, n_lines - label_contents_line_index,

Error: COMPILER_WARNING (CWE-1164): [#def88]
qtbase-everywhere-src-5.15.18/src/corelib/global/qlibraryinfo.cpp:657:16: warning[-Wunused-function]: ‘QString getExtPrefixFromHostBinDir()’ defined but not used
#  657 | static QString getExtPrefixFromHostBinDir()
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  655|   }
#  656|   
#  657|-> static QString getExtPrefixFromHostBinDir()
#  658|   {
#  659|       return getPrefixFromHostBinDir(QT_CONFIGURE_HOSTBINDIR_TO_EXTPREFIX_PATH);

Error: COMPILER_WARNING: [#def89]
qtbase-everywhere-src-5.15.18/src/corelib/global/qlibraryinfo.cpp: scope_hint: In static member function ‘static QString QLibraryInfo::rawLocation(LibraryLocation, PathGroup)’
qtbase-everywhere-src-5.15.18/src/corelib/global/qlibraryinfo.cpp:713:10: warning[-Wunused-but-set-variable=]: variable ‘fromConf’ set but not used
#  713 |     bool fromConf = false;
#      |          ^~~~~~~~
#  711|   #endif // QT_BUILD_QMAKE, started inside location !
#  712|       QString ret;
#  713|->     bool fromConf = false;
#  714|   #if QT_CONFIG(settings)
#  715|   #ifdef QT_BUILD_QMAKE

Error: COMPILER_WARNING: [#def90]
qtbase-everywhere-src-5.15.18/src/corelib/global/qmalloc.cpp: scope_hint: In function ‘void* qReallocAligned(void*, size_t, size_t, size_t)’
qtbase-everywhere-src-5.15.18/src/corelib/global/qmalloc.cpp:115:18: warning[-Wuse-after-free]: pointer ‘actualptr’ may be used after ‘void* realloc(void*, size_t)’
#  115 |         qptrdiff oldoffset = static_cast<char *>(oldptr) - static_cast<char *>(actualptr);
#      |                  ^~~~~~~~~
qtbase-everywhere-src-5.15.18/src/corelib/global/qmalloc.cpp:106:25: note: call to ‘void* realloc(void*, size_t)’ here
#  106 |     void *real = realloc(actualptr, newsize + alignment);
#      |                  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  113|   
#  114|       if (oldptr) {
#  115|->         qptrdiff oldoffset = static_cast<char *>(oldptr) - static_cast<char *>(actualptr);
#  116|           qptrdiff newoffset = reinterpret_cast<char *>(faked_ptr) - static_cast<char *>(real);
#  117|           if (oldoffset != newoffset)

Error: COMPILER_WARNING: [#def91]
qtbase-everywhere-src-5.15.18/src/corelib/text/qlocale.cpp: scope_hint: In static member function ‘static QString QLocaleData::longLongToString(QChar, QChar, QChar, QChar, qlonglong, int, int, int, unsigned int)’
qtbase-everywhere-src-5.15.18/src/corelib/text/qlocale.cpp:3751:10: warning[-Wunused-but-set-variable=]: variable ‘cnt_thousand_sep’ set but not used
# 3751 |     uint cnt_thousand_sep = 0;
#      |          ^~~~~~~~~~~~~~~~
# 3749|   QT_WARNING_POP
# 3750|   
# 3751|->     uint cnt_thousand_sep = 0;
# 3752|       if (base == 10){
# 3753|           if (flags & ThousandsGroup) {

Error: COMPILER_WARNING: [#def92]
qtbase-everywhere-src-5.15.18/src/corelib/text/qlocale.cpp: scope_hint: In static member function ‘static QString QLocaleData::unsLongLongToString(QChar, QChar, QChar, qulonglong, int, int, int, unsigned int)’
qtbase-everywhere-src-5.15.18/src/corelib/text/qlocale.cpp:3847:10: warning[-Wunused-but-set-variable=]: variable ‘cnt_thousand_sep’ set but not used
# 3847 |     uint cnt_thousand_sep = 0;
#      |          ^~~~~~~~~~~~~~~~
# 3845|       }
# 3846|   
# 3847|->     uint cnt_thousand_sep = 0;
# 3848|       if (base == 10) {
# 3849|           if (flags & ThousandsGroup) {

Error: COMPILER_WARNING: [#def93]
qtbase-everywhere-src-5.15.18/src/corelib/text/qlocale.cpp: scope_hint: In member function ‘bool QLocaleData::numberToCLocale(QStringView, QLocale::NumberOptions, CharBuff*) const’
qtbase-everywhere-src-5.15.18/src/corelib/text/qlocale.cpp:3937:9: warning[-Wunused-but-set-variable=]: variable ‘group_cnt’ set but not used
# 3937 |     int group_cnt = 0; // counts number of group chars
#      |         ^~~~~~~~~
# 3935|       }
# 3936|   
# 3937|->     int group_cnt = 0; // counts number of group chars
# 3938|       int decpt_idx = -1;
# 3939|       int last_separator_idx = -1;

Error: COMPILER_WARNING (CWE-457): [#def94]
qtbase-everywhere-src-5.15.18/src/corelib/tools/qlist.h:648:13: warning[-Wmaybe-uninitialized]: ‘copy’ may be used uninitialized
#  648 |             *n = copy;
#      |             ^
qtbase-everywhere-src-5.15.18/src/corelib/tools/qlist.h: scope_hint: In member function ‘void QList<T>::append(const T&) [with T = QString]’
qtbase-everywhere-src-5.15.18/src/corelib/tools/qlist.h:640:22: note: ‘copy’ declared here
#  640 |             Node *n, copy;
#      |                      ^~~~
#  646|                   QT_RETHROW;
#  647|               }
#  648|->             *n = copy;
#  649|           }
#  650|       }

Error: COMPILER_WARNING (CWE-457): [#def95]
qtbase-everywhere-src-5.15.18/src/corelib/tools/qlist.h:682:13: warning[-Wmaybe-uninitialized]: ‘copy’ may be used uninitialized
#  682 |             *n = copy;
#      |             ^
qtbase-everywhere-src-5.15.18/src/corelib/tools/qlist.h: scope_hint: In member function ‘virtual void ProjectGenerator::init()’
qtbase-everywhere-src-5.15.18/src/corelib/tools/qlist.h:674:22: note: ‘copy’ declared here
#  674 |             Node *n, copy;
#      |                      ^~~~
#  680|                   QT_RETHROW;
#  681|               }
#  682|->             *n = copy;
#  683|           }
#  684|       }

Error: COMPILER_WARNING (CWE-457): [#def96]
qtbase-everywhere-src-5.15.18/src/corelib/tools/qlist.h:722:13: warning[-Wmaybe-uninitialized]: ‘copy’ may be used uninitialized
#  722 |             *n = copy;
#      |             ^
qtbase-everywhere-src-5.15.18/src/corelib/tools/qlist.h: scope_hint: In function ‘QString commandLinesForOutput(QStringList)’
qtbase-everywhere-src-5.15.18/src/corelib/tools/qlist.h:714:22: note: ‘copy’ declared here
#  714 |             Node *n, copy;
#      |                      ^~~~
#  720|                   QT_RETHROW;
#  721|               }
#  722|->             *n = copy;
#  723|           }
#  724|       }

Error: COMPILER_WARNING (CWE-590): [#def97]
qtbase-everywhere-src-5.15.18/src/corelib/tools/qshareddata.h:93:62: warning[-Wfree-nonheap-object]: ‘void operator delete(void*)’ called on unallocated object ‘c_locale’
#   93 |     inline ~QSharedDataPointer() { if (d && !d->ref.deref()) delete d; }
#      |                                                              ^~~~~~~~
qtbase-everywhere-src-5.15.18/src/corelib/text/qlocale.cpp: scope_hint: In static member function ‘static QList<QLocale> QLocale::matchingLocales(Language, Script, Country)’
qtbase-everywhere-src-5.15.18/src/corelib/text/qlocale.cpp:641:27: note: declared here
#  641 |     static QLocalePrivate c_locale{
#      |                           ^~~~~~~~
#   91|   
#   92|       inline QSharedDataPointer() { d = nullptr; }
#   93|->     inline ~QSharedDataPointer() { if (d && !d->ref.deref()) delete d; }
#   94|   
#   95|       explicit QSharedDataPointer(T *data) noexcept;

Error: COMPILER_WARNING (CWE-590): [#def98]
qtbase-everywhere-src-5.15.18/src/corelib/tools/qshareddata.h:93:62: warning[-Wfree-nonheap-object]: ‘void operator delete(void*, std::size_t)’ called on unallocated object ‘c_locale’
#   93 |     inline ~QSharedDataPointer() { if (d && !d->ref.deref()) delete d; }
#      |                                                              ^~~~~~~~
qtbase-everywhere-src-5.15.18/src/corelib/text/qlocale.cpp: scope_hint: In static member function ‘static QList<QLocale> QLocale::matchingLocales(Language, Script, Country)’
qtbase-everywhere-src-5.15.18/src/corelib/text/qlocale.cpp:641:27: note: declared here
#  641 |     static QLocalePrivate c_locale{
#      |                           ^~~~~~~~
#   91|   
#   92|       inline QSharedDataPointer() { d = nullptr; }
#   93|->     inline ~QSharedDataPointer() { if (d && !d->ref.deref()) delete d; }
#   94|   
#   95|       explicit QSharedDataPointer(T *data) noexcept;

Error: COMPILER_WARNING: [#def99]
qtbase-everywhere-src-5.15.18/src/dbus/qdbusintegrator.cpp: scope_hint: In member function ‘void QDBusConnectionPrivate::deliverCall(QObject*, int, const QDBusMessage&, const QVector<int>&, int)’
qtbase-everywhere-src-5.15.18/src/dbus/qdbusintegrator.cpp:941:25: warning[-Wdangling-reference]: possibly dangling reference to a temporary
#  941 |         const QVariant &arg = msg.arguments().at(i - 1);
#      |                         ^~~
qtbase-everywhere-src-5.15.18/src/dbus/qdbusintegrator.cpp:941:44: note: ‘QList<QVariant>’ temporary created here
#  941 |         const QVariant &arg = msg.arguments().at(i - 1);
#      |                               ~~~~~~~~~~~~~^~
#  939|               break;
#  940|   
#  941|->         const QVariant &arg = msg.arguments().at(i - 1);
#  942|           if (arg.userType() == id)
#  943|               // no conversion needed

Error: COMPILER_WARNING: [#def100]
qtbase-everywhere-src-5.15.18/src/gui/kernel/qplatformcursor.cpp: scope_hint: In member function ‘void QPlatformCursorImage::set(const uchar*, const uchar*, int, int, int, int)’
qtbase-everywhere-src-5.15.18/src/gui/kernel/qplatformcursor.cpp:622:17: warning[-Wunused-but-set-variable=]: variable ‘w’ set but not used
#  622 |     int x = -1, w = 0;
#      |                 ^
#  620|       int d, m;
#  621|   
#  622|->     int x = -1, w = 0;
#  623|   
#  624|       uchar *cursor_data = cursorImage.bits();

Error: COMPILER_WARNING (CWE-477): [#def101]
qtbase-everywhere-src-5.15.18/src/gui/text/qfontengine.cpp: scope_hint: In member function ‘bool QFontEngine::supportsScript(QChar::Script) const’
qtbase-everywhere-src-5.15.18/src/gui/text/qfontengine.cpp:377:35: warning[-Wdeprecated-declarations]: ‘void hb_ot_tags_from_script(hb_script_t, hb_tag_t*, hb_tag_t*)’ is deprecated: Use 'hb_ot_tags_from_script_and_language' instead
#  377 |             hb_ot_tags_from_script(hb_qt_script_to_script(script), &script_tag_1, &script_tag_2);
#      |             ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/harfbuzz/hb-ot.h:34: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/gui/text/qfontengine.cpp:58: included_from: Included from here.
/usr/include/harfbuzz/hb-ot-deprecated.h:88:1: note: declared here
#   88 | hb_ot_tags_from_script (hb_script_t  script,
#      | ^~~~~~~~~~~~~~~~~~~~~~
#  375|           if (hb_face_t *face = hb_qt_face_get_for_engine(const_cast<QFontEngine *>(this))) {
#  376|               hb_tag_t script_tag_1, script_tag_2;
#  377|->             hb_ot_tags_from_script(hb_qt_script_to_script(script), &script_tag_1, &script_tag_2);
#  378|   
#  379|               unsigned int script_index;

Error: COMPILER_WARNING: [#def102]
qtbase-everywhere-src-5.15.18/src/gui/text/qfontsubset.cpp: scope_hint: In member function ‘QByteArray QFontSubset::toTruetype() const’
qtbase-everywhere-src-5.15.18/src/gui/text/qfontsubset.cpp:1193:10: warning[-Wunused-but-set-variable=]: variable ‘sumAdvances’ set but not used
# 1193 |     uint sumAdvances = 0;
#      |          ^~~~~~~~~~~
# 1191|       glyphs.reserve(numGlyphs);
# 1192|   
# 1193|->     uint sumAdvances = 0;
# 1194|       for (int i = 0; i < numGlyphs; ++i) {
# 1195|           glyph_t g = glyph_indices.at(i);

Error: COMPILER_WARNING (CWE-477): [#def103]
qtbase-everywhere-src-5.15.18/src/gui/text/qharfbuzzng.cpp: scope_hint: In constructor ‘_hb_unicode_funcs_t::_hb_unicode_funcs_t()’
qtbase-everywhere-src-5.15.18/src/gui/text/qharfbuzzng.cpp:432:50: warning[-Wdeprecated-declarations]: ‘void hb_unicode_funcs_set_eastasian_width_func(hb_unicode_funcs_t*, hb_unicode_eastasian_width_func_t, void*, hb_destroy_func_t)’ is deprecated
#  432 |         hb_unicode_funcs_set_eastasian_width_func(funcs, _hb_qt_unicode_eastasian_width, NULL, NULL);
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/harfbuzz/hb.h:34: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/gui/text/qharfbuzzng_p.h:61: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/gui/text/qharfbuzzng.cpp:41: included_from: Included from here.
/usr/include/harfbuzz/hb-deprecated.h:148:1: note: declared here
#  148 | hb_unicode_funcs_set_eastasian_width_func (hb_unicode_funcs_t *ufuncs,
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  430|           funcs = hb_unicode_funcs_create(NULL);
#  431|           hb_unicode_funcs_set_combining_class_func(funcs, _hb_qt_unicode_combining_class, NULL, NULL);
#  432|->         hb_unicode_funcs_set_eastasian_width_func(funcs, _hb_qt_unicode_eastasian_width, NULL, NULL);
#  433|           hb_unicode_funcs_set_general_category_func(funcs, _hb_qt_unicode_general_category, NULL, NULL);
#  434|           hb_unicode_funcs_set_mirroring_func(funcs, _hb_qt_unicode_mirroring, NULL, NULL);

Error: COMPILER_WARNING (CWE-477): [#def104]
qtbase-everywhere-src-5.15.18/src/gui/text/qharfbuzzng.cpp:438:58: warning[-Wdeprecated-declarations]: ‘void hb_unicode_funcs_set_decompose_compatibility_func(hb_unicode_funcs_t*, hb_unicode_decompose_compatibility_func_t, void*, hb_destroy_func_t)’ is deprecated
#  438 |         hb_unicode_funcs_set_decompose_compatibility_func(funcs, _hb_qt_unicode_decompose_compatibility, NULL, NULL);
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/harfbuzz/hb-deprecated.h:216:1: note: declared here
#  216 | hb_unicode_funcs_set_decompose_compatibility_func (hb_unicode_funcs_t *ufuncs,
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  436|           hb_unicode_funcs_set_compose_func(funcs, _hb_qt_unicode_compose, NULL, NULL);
#  437|           hb_unicode_funcs_set_decompose_func(funcs, _hb_qt_unicode_decompose, NULL, NULL);
#  438|->         hb_unicode_funcs_set_decompose_compatibility_func(funcs, _hb_qt_unicode_decompose_compatibility, NULL, NULL);
#  439|       }
#  440|       ~_hb_unicode_funcs_t()

Error: COMPILER_WARNING (CWE-477): [#def105]
qtbase-everywhere-src-5.15.18/src/network/access/qnetworkaccessmanager.cpp: scope_hint: In member function ‘virtual QNetworkReply* QNetworkAccessManager::createRequest(Operation, const QNetworkRequest&, QIODevice*)’
qtbase-everywhere-src-5.15.18/src/network/access/qnetworkaccessmanager.cpp:1397:43: warning[-Wdeprecated-declarations]: ‘QNetworkRequest::FollowRedirectsAttribute’ is deprecated: Use RedirectPolicyAttribute
# 1397 |         && req.attribute(QNetworkRequest::FollowRedirectsAttribute).isNull()) {
#      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~
qtbase-everywhere-src-5.15.18/include/QtNetwork/qnetworkrequest.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/network/access/qnetworkaccessmanager.h:44: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/network/access/qnetworkaccessmanager.cpp:42: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/network/access/qnetworkrequest.h:97:9: note: declared here
#   97 |         FollowRedirectsAttribute Q_DECL_ENUMERATOR_DEPRECATED_X("Use RedirectPolicyAttribute"),
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~
# 1395|       if (redirectPolicy() != QNetworkRequest::ManualRedirectPolicy
# 1396|           && req.attribute(QNetworkRequest::RedirectPolicyAttribute).isNull()
# 1397|->         && req.attribute(QNetworkRequest::FollowRedirectsAttribute).isNull()) {
# 1398|           req.setAttribute(QNetworkRequest::RedirectPolicyAttribute, redirectPolicy());
# 1399|       }

Error: COMPILER_WARNING: [#def106]
qtbase-everywhere-src-5.15.18/src/network/access/qnetworkdiskcache.cpp: scope_hint: In member function ‘virtual qint64 QNetworkDiskCache::expire()’
qtbase-everywhere-src-5.15.18/src/network/access/qnetworkdiskcache.cpp:534:9: warning[-Wunused-but-set-variable=]: variable ‘removedFiles’ set but not used
#  534 |     int removedFiles = 0;
#      |         ^~~~~~~~~~~~
#  532|       }
#  533|   
#  534|->     int removedFiles = 0;
#  535|       qint64 goal = (maximumCacheSize() * 9) / 10;
#  536|       QMultiMap<QDateTime, QString>::const_iterator i = cacheItems.constBegin();

Error: COMPILER_WARNING (CWE-477): [#def107]
qtbase-everywhere-src-5.15.18/src/network/access/qnetworkreplyhttpimpl.cpp: scope_hint: In member function ‘void QNetworkReplyHttpImplPrivate::postRequest(const QNetworkRequest&)’
qtbase-everywhere-src-5.15.18/src/network/access/qnetworkreplyhttpimpl.cpp:700:56: warning[-Wdeprecated-declarations]: ‘QNetworkRequest::FollowRedirectsAttribute’ is deprecated: Use RedirectPolicyAttribute
#  700 |     else if (newHttpRequest.attribute(QNetworkRequest::FollowRedirectsAttribute).toBool())
#      |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~
qtbase-everywhere-src-5.15.18/src/network/access/qnetworkreplyhttpimpl_p.h:55: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/network/access/qnetworkreplyhttpimpl.cpp:42: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/network/access/qnetworkrequest.h:97:9: note: declared here
#   97 |         FollowRedirectsAttribute Q_DECL_ENUMERATOR_DEPRECATED_X("Use RedirectPolicyAttribute"),
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~
#  698|       if (value.isValid())
#  699|           redirectPolicy = qvariant_cast<QNetworkRequest::RedirectPolicy>(value);
#  700|->     else if (newHttpRequest.attribute(QNetworkRequest::FollowRedirectsAttribute).toBool())
#  701|           redirectPolicy = QNetworkRequest::NoLessSafeRedirectPolicy;
#  702|   

Error: COMPILER_WARNING (CWE-477): [#def108]
qtbase-everywhere-src-5.15.18/src/network/kernel/qnetworkproxy_libproxy.cpp: scope_hint: In static member function ‘static QList<QNetworkProxy> QNetworkProxyFactory::systemProxyForQuery(const QNetworkProxyQuery&)’
qtbase-everywhere-src-5.15.18/src/network/kernel/qnetworkproxy_libproxy.cpp:194:55: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = QNetworkProxy::Capability; Zero = int QFlags<QNetworkProxy::Capability>::Private::*]’ is deprecated: Use default constructor instead
#  194 |     QNetworkProxy::Capabilities requiredCapabilities(0);
#      |                                                       ^
qtbase-everywhere-src-5.15.18/include/QtCore/qflags.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/corelib/global/qglobal.h:1307: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtCore/qglobal.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/network/kernel/qtnetworkglobal.h:43: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtNetwork/qtnetworkglobal.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/network/kernel/qnetworkproxy.h:43: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/network/kernel/qnetworkproxy_libproxy.cpp:41: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/corelib/global/qflags.h:123:80: note: declared here
#  123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
#      |                                                                                ^~~~~~
#  192|   
#  193|       QUrl queryUrl;
#  194|->     QNetworkProxy::Capabilities requiredCapabilities(0);
#  195|       switch (query.queryType()) {
#  196|       //URL requests are directly supported by libproxy

Error: COMPILER_WARNING: [#def109]
qtbase-everywhere-src-5.15.18/src/platformsupport/input/evdevmouse/qevdevmousehandler.cpp: scope_hint: In member function ‘void QEvdevMouseHandler::readMouseData()’
qtbase-everywhere-src-5.15.18/src/platformsupport/input/evdevmouse/qevdevmousehandler.cpp:219:9: warning[-Wunused-but-set-variable=]: variable ‘eventCompressCount’ set but not used
#  219 |     int eventCompressCount = 0;
#      |         ^~~~~~~~~~~~~~~~~~
#  217|       bool posChanged = false, btnChanged = false;
#  218|       bool pendingMouseEvent = false;
#  219|->     int eventCompressCount = 0;
#  220|       forever {
#  221|           int result = QT_READ(m_fd, reinterpret_cast<char *>(buffer) + n, sizeof(buffer) - n);

Error: COMPILER_WARNING (CWE-457): [#def110]
qtbase-everywhere-src-5.15.18/src/platformsupport/linuxaccessibility/constant_mappings_p.h:110:8: warning[-Wmaybe-uninitialized]: ‘<unnamed>.RoleNames::m_spiRole’ may be used uninitialized
#  110 | struct RoleNames {
#      |        ^~~~~~~~~
qtbase-everywhere-src-5.15.18/include/QtCore/qhash.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/corelib/tools/qshareddata.h:46: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtCore/qshareddata.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/corelib/tools/qsharedpointer.h:45: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtCore/qsharedpointer.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/platformsupport/linuxaccessibility/atspiadaptor_p.h:58: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/platformsupport/linuxaccessibility/atspiadaptor.cpp:40: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/corelib/tools/qhash.h: scope_hint: In member function ‘T& QHash<K, V>::operator[](const Key&) [with Key = QAccessible::Role; T = RoleNames]’
qtbase-everywhere-src-5.15.18/src/corelib/tools/qhash.h:761:36: note: ‘<anonymous>’ declared here
#  761 |         return createNode(h, akey, T(), node)->value;
#      |                                    ^~~
#  108|   QT_BEGIN_NAMESPACE
#  109|   
#  110|-> struct RoleNames {
#  111|       RoleNames() {}
#  112|       RoleNames(AtspiRole r, const QString& n, const QString& ln)

Error: COMPILER_WARNING: [#def111]
qtbase-everywhere-src-5.15.18/src/plugins/imageformats/ico/qicohandler.cpp: scope_hint: In static member function ‘static bool ICOReader::canRead(QIODevice*)’
qtbase-everywhere-src-5.15.18/src/plugins/imageformats/ico/qicohandler.cpp:212:20: warning[-Wunused-but-set-variable=]: variable ‘readBytes’ set but not used
#  212 |             qint64 readBytes = ICONDIR_SIZE;
#      |                    ^~~~~~~~~
#  210|           ICONDIR ikonDir;
#  211|           if (readIconDir(iodev, &ikonDir)) {
#  212|->             qint64 readBytes = ICONDIR_SIZE;
#  213|               if (readIconDirEntry(iodev, &ikonDir.idEntries[0])) {
#  214|                   readBytes += ICONDIRENTRY_SIZE;

Error: COMPILER_WARNING (CWE-563): [#def112]
qtbase-everywhere-src-5.15.18/src/plugins/platformthemes/gtk3/qgtk3theme.cpp: scope_hint: In member function ‘virtual QIcon QGtk3Theme::fileIcon(const QFileInfo&, QPlatformTheme::IconOptions) const’
qtbase-everywhere-src-5.15.18/src/plugins/platformthemes/gtk3/qgtk3theme.cpp:267:56: warning[-Wunused-parameter]: unused parameter ‘iconOptions’
#  267 |                            QPlatformTheme::IconOptions iconOptions) const
#      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
#  265|   
#  266|   QIcon QGtk3Theme::fileIcon(const QFileInfo &fileInfo,
#  267|->                            QPlatformTheme::IconOptions iconOptions) const
#  268|   {
#  269|       Q_ASSERT(m_storage);

Error: COMPILER_WARNING (CWE-477): [#def113]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In constructor ‘QPpdPrintDevice::QPpdPrintDevice(const QString&)’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:71:45: warning[-Wdeprecated-declarations]: ‘const char* cupsGetPPD(const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#   71 |             const char *ppdFile = cupsGetPPD(m_cupsName);
#      |                                   ~~~~~~~~~~^~~~~~~~~~~~
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprint_p.h:61: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtPrintSupport/5.15.18/QtPrintSupport/private/qprint_p.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qplatformprintdevice.h:56: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtPrintSupport/5.15.18/QtPrintSupport/qpa/qplatformprintdevice.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.h:54: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:40: included_from: Included from here.
/usr/include/cups/ppd.h:359:26: note: declared here
#  359 | extern const char       *cupsGetPPD(const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
#      |                          ^~~~~~~~~~
#   69|           m_cupsDest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, m_cupsName, m_cupsInstance.isNull() ? nullptr : m_cupsInstance.constData());
#   70|           if (m_cupsDest) {
#   71|->             const char *ppdFile = cupsGetPPD(m_cupsName);
#   72|               if (ppdFile) {
#   73|                   m_ppd = ppdOpenFile(ppdFile);

Error: COMPILER_WARNING (CWE-477): [#def114]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:73:36: warning[-Wdeprecated-declarations]: ‘ppd_file_t* ppdOpenFile(const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#   73 |                 m_ppd = ppdOpenFile(ppdFile);
#      |                         ~~~~~~~~~~~^~~~~~~~~
/usr/include/cups/ppd.h:390:26: note: declared here
#  390 | extern ppd_file_t       *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
#      |                          ^~~~~~~~~~~
#   71|               const char *ppdFile = cupsGetPPD(m_cupsName);
#   72|               if (ppdFile) {
#   73|->                 m_ppd = ppdOpenFile(ppdFile);
#   74|                   unlink(ppdFile);
#   75|               }

Error: COMPILER_WARNING (CWE-477): [#def115]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:77:32: warning[-Wdeprecated-declarations]: ‘void ppdMarkDefaults(ppd_file_t*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#   77 |                 ppdMarkDefaults(m_ppd);
#      |                 ~~~~~~~~~~~~~~~^~~~~~~
/usr/include/cups/ppd.h:385:25: note: declared here
#  385 | extern void             ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
#      |                         ^~~~~~~~~~~~~~~
#   75|               }
#   76|               if (m_ppd) {
#   77|->                 ppdMarkDefaults(m_ppd);
#   78|                   cupsMarkOptions(m_ppd, m_cupsDest->num_options, m_cupsDest->options);
#   79|                   ppdLocalize(m_ppd);

Error: COMPILER_WARNING (CWE-477): [#def116]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:78:32: warning[-Wdeprecated-declarations]: ‘int cupsMarkOptions(ppd_file_t*, int, cups_option_t*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#   78 |                 cupsMarkOptions(m_ppd, m_cupsDest->num_options, m_cupsDest->options);
#      |                 ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:363:25: note: declared here
#  363 | extern int              cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
#      |                         ^~~~~~~~~~~~~~~
#   76|               if (m_ppd) {
#   77|                   ppdMarkDefaults(m_ppd);
#   78|->                 cupsMarkOptions(m_ppd, m_cupsDest->num_options, m_cupsDest->options);
#   79|                   ppdLocalize(m_ppd);
#   80|   

Error: COMPILER_WARNING (CWE-477): [#def117]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:79:28: warning[-Wdeprecated-declarations]: ‘int ppdLocalize(ppd_file_t*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#   79 |                 ppdLocalize(m_ppd);
#      |                 ~~~~~~~~~~~^~~~~~~
/usr/include/cups/ppd.h:435:25: note: declared here
#  435 | extern int              ppdLocalize(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
#      |                         ^~~~~~~~~~~
#   77|                   ppdMarkDefaults(m_ppd);
#   78|                   cupsMarkOptions(m_ppd, m_cupsDest->num_options, m_cupsDest->options);
#   79|->                 ppdLocalize(m_ppd);
#   80|   
#   81|                   m_minimumPhysicalPageSize = QSize(m_ppd->custom_min[0], m_ppd->custom_min[1]);

Error: COMPILER_WARNING (CWE-477): [#def118]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In destructor ‘virtual QPpdPrintDevice::~QPpdPrintDevice()’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:109:17: warning[-Wdeprecated-declarations]: ‘void ppdClose(ppd_file_t*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  109 |         ppdClose(m_ppd);
#      |         ~~~~~~~~^~~~~~~
/usr/include/cups/ppd.h:365:25: note: declared here
#  365 | extern void             ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
#      |                         ^~~~~~~~
#  107|   {
#  108|       if (m_ppd)
#  109|->         ppdClose(m_ppd);
#  110|       if (m_cupsDest)
#  111|           cupsFreeDests(1, m_cupsDest);

Error: COMPILER_WARNING (CWE-477): [#def119]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual void QPpdPrintDevice::loadPageSizes() const’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:149:44: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  149 |     ppd_option_t *pageSizes = ppdFindOption(m_ppd, "PageSize");
#      |                               ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  147|       m_printableMargins.clear();
#  148|   
#  149|->     ppd_option_t *pageSizes = ppdFindOption(m_ppd, "PageSize");
#  150|       if (pageSizes) {
#  151|           for (int i = 0; i < pageSizes->num_choices; ++i) {

Error: COMPILER_WARNING (CWE-477): [#def120]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:152:52: warning[-Wdeprecated-declarations]: ‘ppd_size_t* ppdPageSize(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  152 |             const ppd_size_t *ppdSize = ppdPageSize(m_ppd, pageSizes->choices[i].choice);
#      |                                         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:393:26: note: declared here
#  393 | extern ppd_size_t       *ppdPageSize(ppd_file_t *ppd, const char *name)
#      |                          ^~~~~~~~~~~
#  150|       if (pageSizes) {
#  151|           for (int i = 0; i < pageSizes->num_choices; ++i) {
#  152|->             const ppd_size_t *ppdSize = ppdPageSize(m_ppd, pageSizes->choices[i].choice);
#  153|               if (ppdSize) {
#  154|                   // Returned size is in points

Error: COMPILER_WARNING (CWE-477): [#def121]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual QPageSize QPpdPrintDevice::defaultPageSize() const’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:174:54: warning[-Wdeprecated-declarations]: ‘ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  174 |     ppd_choice_t *defaultChoice = ppdFindMarkedChoice(m_ppd, "PageSize");
#      |                                   ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:378:26: note: declared here
#  378 | extern ppd_choice_t     *ppdFindMarkedChoice(ppd_file_t *ppd,
#      |                          ^~~~~~~~~~~~~~~~~~~
#  172|   QPageSize QPpdPrintDevice::defaultPageSize() const
#  173|   {
#  174|->     ppd_choice_t *defaultChoice = ppdFindMarkedChoice(m_ppd, "PageSize");
#  175|       if (defaultChoice) {
#  176|           ppd_size_t *ppdSize = ppdPageSize(m_ppd, defaultChoice->choice);

Error: COMPILER_WARNING (CWE-477): [#def122]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:176:42: warning[-Wdeprecated-declarations]: ‘ppd_size_t* ppdPageSize(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  176 |         ppd_size_t *ppdSize = ppdPageSize(m_ppd, defaultChoice->choice);
#      |                               ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:393:26: note: declared here
#  393 | extern ppd_size_t       *ppdPageSize(ppd_file_t *ppd, const char *name)
#      |                          ^~~~~~~~~~~
#  174|       ppd_choice_t *defaultChoice = ppdFindMarkedChoice(m_ppd, "PageSize");
#  175|       if (defaultChoice) {
#  176|->         ppd_size_t *ppdSize = ppdPageSize(m_ppd, defaultChoice->choice);
#  177|           if (ppdSize) {
#  178|               // Returned size is in points

Error: COMPILER_WARNING (CWE-477): [#def123]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual void QPpdPrintDevice::loadResolutions() const’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:207:46: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  207 |     ppd_option_t *resolutions = ppdFindOption(m_ppd, "Resolution");
#      |                                 ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  205|   
#  206|       // Try load standard PPD options first
#  207|->     ppd_option_t *resolutions = ppdFindOption(m_ppd, "Resolution");
#  208|       if (resolutions) {
#  209|           for (int i = 0; i < resolutions->num_choices; ++i) {

Error: COMPILER_WARNING (CWE-477): [#def124]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:217:36: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  217 |         resolutions = ppdFindOption(m_ppd, "DefaultResolution");
#      |                       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  215|       // If no result, try just the default
#  216|       if (m_resolutions.size() == 0) {
#  217|->         resolutions = ppdFindOption(m_ppd, "DefaultResolution");
#  218|           if (resolutions) {
#  219|               int res = QPrintUtils::parsePpdResolution(resolutions->choices[0].choice);

Error: COMPILER_WARNING (CWE-477): [#def125]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:226:36: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  226 |         resolutions = ppdFindOption(m_ppd, "HPPrintQuality");
#      |                       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  224|       // If still no result, then try HP's custom options
#  225|       if (m_resolutions.size() == 0) {
#  226|->         resolutions = ppdFindOption(m_ppd, "HPPrintQuality");
#  227|           if (resolutions) {
#  228|               for (int i = 0; i < resolutions->num_choices; ++i) {

Error: COMPILER_WARNING (CWE-477): [#def126]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:236:36: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  236 |         resolutions = ppdFindOption(m_ppd, "DefaultHPPrintQuality");
#      |                       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  234|       }
#  235|       if (m_resolutions.size() == 0) {
#  236|->         resolutions = ppdFindOption(m_ppd, "DefaultHPPrintQuality");
#  237|           if (resolutions) {
#  238|               int res = QPrintUtils::parsePpdResolution(resolutions->choices[0].choice);

Error: COMPILER_WARNING (CWE-477): [#def127]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual int QPpdPrintDevice::defaultResolution() const’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:249:45: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  249 |     ppd_option_t *resolution = ppdFindOption(m_ppd, "DefaultResolution");
#      |                                ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  247|   {
#  248|       // Try load standard PPD option first
#  249|->     ppd_option_t *resolution = ppdFindOption(m_ppd, "DefaultResolution");
#  250|       if (resolution) {
#  251|           int res = QPrintUtils::parsePpdResolution(resolution->choices[0].choice);

Error: COMPILER_WARNING (CWE-477): [#def128]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:256:54: warning[-Wdeprecated-declarations]: ‘ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  256 |     ppd_choice_t *defaultChoice = ppdFindMarkedChoice(m_ppd, "Resolution");
#      |                                   ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:378:26: note: declared here
#  378 | extern ppd_choice_t     *ppdFindMarkedChoice(ppd_file_t *ppd,
#      |                          ^~~~~~~~~~~~~~~~~~~
#  254|       }
#  255|       // If no result, then try a marked option
#  256|->     ppd_choice_t *defaultChoice = ppdFindMarkedChoice(m_ppd, "Resolution");
#  257|       if (defaultChoice) {
#  258|           int res = QPrintUtils::parsePpdResolution(defaultChoice->choice);

Error: COMPILER_WARNING (CWE-477): [#def129]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:263:31: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  263 |     resolution = ppdFindOption(m_ppd, "DefaultHPPrintQuality");
#      |                  ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  261|       }
#  262|       // If still no result, then try HP's custom options
#  263|->     resolution = ppdFindOption(m_ppd, "DefaultHPPrintQuality");
#  264|       if (resolution) {
#  265|           int res = QPrintUtils::parsePpdResolution(resolution->choices[0].choice);

Error: COMPILER_WARNING (CWE-477): [#def130]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:269:40: warning[-Wdeprecated-declarations]: ‘ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  269 |     defaultChoice = ppdFindMarkedChoice(m_ppd, "HPPrintQuality");
#      |                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:378:26: note: declared here
#  378 | extern ppd_choice_t     *ppdFindMarkedChoice(ppd_file_t *ppd,
#      |                          ^~~~~~~~~~~~~~~~~~~
#  267|               return res;
#  268|       }
#  269|->     defaultChoice = ppdFindMarkedChoice(m_ppd, "HPPrintQuality");
#  270|       if (defaultChoice) {
#  271|           int res = QPrintUtils::parsePpdResolution(defaultChoice->choice);

Error: COMPILER_WARNING (CWE-477): [#def131]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual void QPpdPrintDevice::loadInputSlots() const’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:289:49: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  289 |         ppd_option_t *inputSlots = ppdFindOption(m_ppd, "InputSlot");
#      |                                    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  287|       m_inputSlots.clear();
#  288|       if (m_ppd) {
#  289|->         ppd_option_t *inputSlots = ppdFindOption(m_ppd, "InputSlot");
#  290|           if (inputSlots) {
#  291|               m_inputSlots.reserve(inputSlots->num_choices);

Error: COMPILER_WARNING (CWE-477): [#def132]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:297:39: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  297 |             inputSlots = ppdFindOption(m_ppd, "DefaultInputSlot");
#      |                          ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  295|           // If no result, try just the default
#  296|           if (m_inputSlots.size() == 0) {
#  297|->             inputSlots = ppdFindOption(m_ppd, "DefaultInputSlot");
#  298|               if (inputSlots)
#  299|                   m_inputSlots.append(QPrintUtils::ppdChoiceToInputSlot(inputSlots->choices[0]));

Error: COMPILER_WARNING (CWE-477): [#def133]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual QPrint::InputSlot QPpdPrintDevice::defaultInputSlot() const’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:313:48: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  313 |         ppd_option_t *inputSlot = ppdFindOption(m_ppd, "DefaultInputSlot");
#      |                                   ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  311|       // Try load standard PPD option first
#  312|       if (m_ppd) {
#  313|->         ppd_option_t *inputSlot = ppdFindOption(m_ppd, "DefaultInputSlot");
#  314|           if (inputSlot)
#  315|               return QPrintUtils::ppdChoiceToInputSlot(inputSlot->choices[0]);

Error: COMPILER_WARNING (CWE-477): [#def134]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:317:58: warning[-Wdeprecated-declarations]: ‘ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  317 |         ppd_choice_t *defaultChoice = ppdFindMarkedChoice(m_ppd, "InputSlot");
#      |                                       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:378:26: note: declared here
#  378 | extern ppd_choice_t     *ppdFindMarkedChoice(ppd_file_t *ppd,
#      |                          ^~~~~~~~~~~~~~~~~~~
#  315|               return QPrintUtils::ppdChoiceToInputSlot(inputSlot->choices[0]);
#  316|           // If no result, then try a marked option
#  317|->         ppd_choice_t *defaultChoice = ppdFindMarkedChoice(m_ppd, "InputSlot");
#  318|           if (defaultChoice)
#  319|               return QPrintUtils::ppdChoiceToInputSlot(*defaultChoice);

Error: COMPILER_WARNING (CWE-477): [#def135]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual void QPpdPrintDevice::loadOutputBins() const’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:330:49: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  330 |         ppd_option_t *outputBins = ppdFindOption(m_ppd, "OutputBin");
#      |                                    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  328|       m_outputBins.clear();
#  329|       if (m_ppd) {
#  330|->         ppd_option_t *outputBins = ppdFindOption(m_ppd, "OutputBin");
#  331|           if (outputBins) {
#  332|               m_outputBins.reserve(outputBins->num_choices);

Error: COMPILER_WARNING (CWE-477): [#def136]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:338:39: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  338 |             outputBins = ppdFindOption(m_ppd, "DefaultOutputBin");
#      |                          ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  336|           // If no result, try just the default
#  337|           if (m_outputBins.size() == 0) {
#  338|->             outputBins = ppdFindOption(m_ppd, "DefaultOutputBin");
#  339|               if (outputBins)
#  340|                   m_outputBins.append(QPrintUtils::ppdChoiceToOutputBin(outputBins->choices[0]));

Error: COMPILER_WARNING (CWE-477): [#def137]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual QPrint::OutputBin QPpdPrintDevice::defaultOutputBin() const’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:354:48: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  354 |         ppd_option_t *outputBin = ppdFindOption(m_ppd, "DefaultOutputBin");
#      |                                   ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  352|       // Try load standard PPD option first
#  353|       if (m_ppd) {
#  354|->         ppd_option_t *outputBin = ppdFindOption(m_ppd, "DefaultOutputBin");
#  355|           if (outputBin)
#  356|               return QPrintUtils::ppdChoiceToOutputBin(outputBin->choices[0]);

Error: COMPILER_WARNING (CWE-477): [#def138]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:358:58: warning[-Wdeprecated-declarations]: ‘ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  358 |         ppd_choice_t *defaultChoice = ppdFindMarkedChoice(m_ppd, "OutputBin");
#      |                                       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:378:26: note: declared here
#  378 | extern ppd_choice_t     *ppdFindMarkedChoice(ppd_file_t *ppd,
#      |                          ^~~~~~~~~~~~~~~~~~~
#  356|               return QPrintUtils::ppdChoiceToOutputBin(outputBin->choices[0]);
#  357|           // If no result, then try a marked option
#  358|->         ppd_choice_t *defaultChoice = ppdFindMarkedChoice(m_ppd, "OutputBin");
#  359|           if (defaultChoice)
#  360|               return QPrintUtils::ppdChoiceToOutputBin(*defaultChoice);

Error: COMPILER_WARNING (CWE-477): [#def139]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual void QPpdPrintDevice::loadDuplexModes() const’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:372:50: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  372 |         ppd_option_t *duplexModes = ppdFindOption(m_ppd, "Duplex");
#      |                                     ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  370|       m_duplexModes.clear();
#  371|       if (m_ppd) {
#  372|->         ppd_option_t *duplexModes = ppdFindOption(m_ppd, "Duplex");
#  373|           if (duplexModes) {
#  374|               m_duplexModes.reserve(duplexModes->num_choices);

Error: COMPILER_WARNING (CWE-477): [#def140]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:376:43: warning[-Wdeprecated-declarations]: ‘int ppdInstallableConflict(ppd_file_t*, const char*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  376 |                 if (ppdInstallableConflict(m_ppd, duplexModes->keyword, duplexModes->choices[i].choice) == 0) {
#      |                     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:456:25: note: declared here
#  456 | extern int              ppdInstallableConflict(ppd_file_t *ppd,
#      |                         ^~~~~~~~~~~~~~~~~~~~~~
#  374|               m_duplexModes.reserve(duplexModes->num_choices);
#  375|               for (int i = 0; i < duplexModes->num_choices; ++i) {
#  376|->                 if (ppdInstallableConflict(m_ppd, duplexModes->keyword, duplexModes->choices[i].choice) == 0) {
#  377|                       m_duplexModes.append(QPrintUtils::ppdChoiceToDuplexMode(duplexModes->choices[i].choice));
#  378|                   }

Error: COMPILER_WARNING (CWE-477): [#def141]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:383:40: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  383 |             duplexModes = ppdFindOption(m_ppd, "DefaultDuplex");
#      |                           ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  381|           // If no result, try just the default
#  382|           if (m_duplexModes.size() == 0) {
#  383|->             duplexModes = ppdFindOption(m_ppd, "DefaultDuplex");
#  384|               if (duplexModes && (ppdInstallableConflict(m_ppd, duplexModes->keyword, duplexModes->choices[0].choice) == 0)) {
#  385|                   m_duplexModes.append(QPrintUtils::ppdChoiceToDuplexMode(duplexModes->choices[0].choice));

Error: COMPILER_WARNING (CWE-477): [#def142]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:384:55: warning[-Wdeprecated-declarations]: ‘int ppdInstallableConflict(ppd_file_t*, const char*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  384 |             if (duplexModes && (ppdInstallableConflict(m_ppd, duplexModes->keyword, duplexModes->choices[0].choice) == 0)) {
#      |                                 ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:456:25: note: declared here
#  456 | extern int              ppdInstallableConflict(ppd_file_t *ppd,
#      |                         ^~~~~~~~~~~~~~~~~~~~~~
#  382|           if (m_duplexModes.size() == 0) {
#  383|               duplexModes = ppdFindOption(m_ppd, "DefaultDuplex");
#  384|->             if (duplexModes && (ppdInstallableConflict(m_ppd, duplexModes->keyword, duplexModes->choices[0].choice) == 0)) {
#  385|                   m_duplexModes.append(QPrintUtils::ppdChoiceToDuplexMode(duplexModes->choices[0].choice));
#  386|               }

Error: COMPILER_WARNING (CWE-477): [#def143]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual QPrint::DuplexMode QPpdPrintDevice::defaultDuplexMode() const’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:402:48: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  402 |         ppd_option_t *inputSlot = ppdFindOption(m_ppd, "DefaultDuplex");
#      |                                   ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  400|       // Try load standard PPD option first
#  401|       if (m_ppd) {
#  402|->         ppd_option_t *inputSlot = ppdFindOption(m_ppd, "DefaultDuplex");
#  403|           if (inputSlot)
#  404|               return QPrintUtils::ppdChoiceToDuplexMode(inputSlot->choices[0].choice);

Error: COMPILER_WARNING (CWE-477): [#def144]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:406:58: warning[-Wdeprecated-declarations]: ‘ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  406 |         ppd_choice_t *defaultChoice = ppdFindMarkedChoice(m_ppd, "Duplex");
#      |                                       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:378:26: note: declared here
#  378 | extern ppd_choice_t     *ppdFindMarkedChoice(ppd_file_t *ppd,
#      |                          ^~~~~~~~~~~~~~~~~~~
#  404|               return QPrintUtils::ppdChoiceToDuplexMode(inputSlot->choices[0].choice);
#  405|           // If no result, then try a marked option
#  406|->         ppd_choice_t *defaultChoice = ppdFindMarkedChoice(m_ppd, "Duplex");
#  407|           if (defaultChoice)
#  408|               return QPrintUtils::ppdChoiceToDuplexMode(defaultChoice->choice);

Error: COMPILER_WARNING (CWE-477): [#def145]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual QPrint::ColorMode QPpdPrintDevice::defaultColorMode() const’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:434:49: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  434 |         ppd_option_t *colorModel = ppdFindOption(m_ppd, "DefaultColorModel");
#      |                                    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  432|       // users known to abuse ColorModel to always force GrayScale.
#  433|       if (m_ppd && supportedColorModes().contains(QPrint::Color)) {
#  434|->         ppd_option_t *colorModel = ppdFindOption(m_ppd, "DefaultColorModel");
#  435|           if (!colorModel)
#  436|               colorModel = ppdFindOption(m_ppd, "ColorModel");

Error: COMPILER_WARNING (CWE-477): [#def146]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:436:39: warning[-Wdeprecated-declarations]: ‘ppd_option_t* ppdFindOption(ppd_file_t*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  436 |             colorModel = ppdFindOption(m_ppd, "ColorModel");
#      |                          ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:381:26: note: declared here
#  381 | extern ppd_option_t     *ppdFindOption(ppd_file_t *ppd, const char *keyword)
#      |                          ^~~~~~~~~~~~~
#  434|           ppd_option_t *colorModel = ppdFindOption(m_ppd, "DefaultColorModel");
#  435|           if (!colorModel)
#  436|->             colorModel = ppdFindOption(m_ppd, "ColorModel");
#  437|           if (!colorModel || qstrcmp(colorModel->defchoice, "Gray") != 0)
#  438|               return QPrint::Color;

Error: COMPILER_WARNING (CWE-477): [#def147]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual bool QPpdPrintDevice::setProperty(QPrintDevice::PrintDevicePropertyKey, const QVariant&)’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:464:26: warning[-Wdeprecated-declarations]: ‘int ppdMarkOption(ppd_file_t*, const char*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  464 |             ppdMarkOption(m_ppd, values[0].toLatin1(), values[1].toLatin1());
#      |             ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:386:25: note: declared here
#  386 | extern int              ppdMarkOption(ppd_file_t *ppd, const char *keyword,
#      |                         ^~~~~~~~~~~~~
#  462|           const QStringList values = value.toStringList();
#  463|           if (values.count() == 2) {
#  464|->             ppdMarkOption(m_ppd, values[0].toLatin1(), values[1].toLatin1());
#  465|               return true;
#  466|           }

Error: COMPILER_WARNING (CWE-477): [#def148]
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp: scope_hint: In member function ‘virtual bool QPpdPrintDevice::isFeatureAvailable(QPrintDevice::PrintDevicePropertyKey, const QVariant&) const’
qtbase-everywhere-src-5.15.18/src/plugins/printsupport/cups/qppdprintdevice.cpp:477:42: warning[-Wdeprecated-declarations]: ‘int ppdInstallableConflict(ppd_file_t*, const char*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead.
#  477 |             return ppdInstallableConflict(m_ppd, values[0].toLatin1(), values[1].toLatin1());
#      |                    ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:456:25: note: declared here
#  456 | extern int              ppdInstallableConflict(ppd_file_t *ppd,
#      |                         ^~~~~~~~~~~~~~~~~~~~~~
#  475|           const QStringList values = params.toStringList();
#  476|           if (values.count() == 2)
#  477|->             return ppdInstallableConflict(m_ppd, values[0].toLatin1(), values[1].toLatin1());
#  478|       }
#  479|   

Error: COMPILER_WARNING (CWE-477): [#def149]
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.cpp: scope_hint: In member function ‘QPrinter::PaperSize QPrinter::paperSize() const’
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.cpp:1077:20: warning[-Wdeprecated-declarations]: ‘QPagedPaintDevice::PageSize QPrinter::pageSize() const’ is deprecated: Use pageLayout().pageSize().id() instead.
# 1077 |     return pageSize();
#      |            ~~~~~~~~^~
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.cpp:40: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/printsupport/kernel/qprinter.h:179:14: note: declared here
#  179 |     PageSize pageSize() const;
#      |              ^~~~~~~~
# 1075|   QPrinter::PaperSize QPrinter::paperSize() const
# 1076|   {
# 1077|->     return pageSize();
# 1078|   }
# 1079|   

Error: COMPILER_WARNING: [#def150]
qtbase-everywhere-src-5.15.18/include/QtWidgets/qstyleditemdelegate.h:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/include/QtWidgets/QStyledItemDelegate:1: included_from: Included from here.
qtbase-everywhere-src-5.15.18/examples/widgets/tools/settingseditor/variantdelegate.h:54: included_from: Included from here.
qtbase-everywhere-src-5.15.18/examples/widgets/tools/settingseditor/settingstree.cpp:52: included_from: Included from here.
qtbase-everywhere-src-5.15.18/src/widgets/itemviews/qstyleditemdelegate.h:88:21: warning[-Woverloaded-virtual=]: ‘virtual QString QStyledItemDelegate::displayText(const QVariant&, const QLocale&) const’ was hidden
#   88 |     virtual QString displayText(const QVariant &value, const QLocale &locale) const;
#      |                     ^~~~~~~~~~~
qtbase-everywhere-src-5.15.18/examples/widgets/tools/settingseditor/variantdelegate.h:94:20: note:   by ‘static QString VariantDelegate::displayText(const QVariant&)’
#   94 |     static QString displayText(const QVariant &value);
#      |                    ^~~~~~~~~~~
#   86|       void setItemEditorFactory(QItemEditorFactory *factory);
#   87|   
#   88|->     virtual QString displayText(const QVariant &value, const QLocale &locale) const;
#   89|   
#   90|   protected:

Error: COMPILER_WARNING: [#def151]
qtbase-everywhere-src-5.15.18/src/widgets/kernel/qlayoutengine.cpp: scope_hint: In function ‘void qGeomCalc(QVector<QLayoutStruct>&, int, int, int, int, int)’
qtbase-everywhere-src-5.15.18/src/widgets/kernel/qlayoutengine.cpp:81:9: warning[-Wunused-but-set-variable=]: variable ‘cMax’ set but not used
#   81 |     int cMax = 0;
#      |         ^~~~
#   79|       int cHint = 0;
#   80|       int cMin = 0;
#   81|->     int cMax = 0;
#   82|       int sumStretch = 0;
#   83|       int sumSpacing = 0;

Error: COMPILER_WARNING: [#def152]
qtbase-everywhere-src-5.15.18/src/widgets/util/qscroller.cpp: scope_hint: In member function ‘void QScrollerPrivate::setContentPositionHelperDragging(const QPointF&)’
qtbase-everywhere-src-5.15.18/src/widgets/util/qscroller.cpp:1780:11: warning[-Wunused-but-set-variable=]: variable ‘oldOvershootX’ set but not used
# 1780 |     qreal oldOvershootX = (canOvershootX) ? oldPos.x() - oldClampedPos.x() : 0;
#      |           ^~~~~~~~~~~~~
# 1778|       bool canOvershootY = !noOvershootY && (alwaysOvershootY || contentPosRange.height());
# 1779|   
# 1780|->     qreal oldOvershootX = (canOvershootX) ? oldPos.x() - oldClampedPos.x() : 0;
# 1781|       qreal oldOvershootY = (canOvershootY) ? oldPos.y() - oldClampedPos.y() : 0;
# 1782|   

Error: COMPILER_WARNING: [#def153]
qtbase-everywhere-src-5.15.18/src/widgets/util/qscroller.cpp:1781:11: warning[-Wunused-but-set-variable=]: variable ‘oldOvershootY’ set but not used
# 1781 |     qreal oldOvershootY = (canOvershootY) ? oldPos.y() - oldClampedPos.y() : 0;
#      |           ^~~~~~~~~~~~~
# 1779|   
# 1780|       qreal oldOvershootX = (canOvershootX) ? oldPos.x() - oldClampedPos.x() : 0;
# 1781|->     qreal oldOvershootY = (canOvershootY) ? oldPos.y() - oldClampedPos.y() : 0;
# 1782|   
# 1783|       qreal newOvershootX = (canOvershootX) ? newPos.x() - newClampedPos.x() : 0;

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-195.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameqt5-qtbase-5.15.18-1.fc44
store-results-to/tmp/tmpztjtp819/qt5-qtbase-5.15.18-1.fc44.tar.xz
time-created2026-01-08 21:37:09
time-finished2026-01-08 22:04:11
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpztjtp819/qt5-qtbase-5.15.18-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpztjtp819/qt5-qtbase-5.15.18-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9