Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-252): [#def1]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>))()>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/algorithm:61: included_from: Included from here.
/usr/include/qt6/QtCore/qcontainertools_impl.h:22: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydataops.h:9: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydatapointer.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qbytearray.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qstringview.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qchar.h:656: included_from: Included from here.
/usr/include/qt6/QtCore/qlatin1stringview.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/QLatin1String:1: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/redhat-linux-build/src/config-kwin.h:2: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:12: included_from: Included from here.
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>, KWin::SwitchEvent*))(KWin::SwitchEvent*)>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.cpp:3045:23:   required from here
# 3045 |         processFilters(std::bind(&InputEventFilter::switchEvent, std::placeholders::_1, &event));
#      |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def2]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, KWin::KeyEvent*))(KWin::KeyEvent*)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/algorithm:61: included_from: Included from here.
/usr/include/qt6/QtCore/qcontainertools_impl.h:22: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydataops.h:9: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydatapointer.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qbytearray.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qstringview.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qchar.h:656: included_from: Included from here.
/usr/include/qt6/QtCore/qlatin1stringview.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/QLatin1String:1: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/redhat-linux-build/src/config-kwin.h:2: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:12: included_from: Included from here.
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def3]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, KWin::MouseEvent*, int))(KWin::MouseEvent*, unsigned int)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/algorithm:61: included_from: Included from here.
/usr/include/qt6/QtCore/qcontainertools_impl.h:22: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydataops.h:9: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydatapointer.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qbytearray.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qstringview.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qchar.h:656: included_from: Included from here.
/usr/include/qt6/QtCore/qlatin1stringview.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/QLatin1String:1: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/redhat-linux-build/src/config-kwin.h:2: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/effect/globals.h:12: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/cursor.h:11: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/pointer_input.h:13: included_from: Included from here.
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>, KWin::MouseEvent*, unsigned int))(KWin::MouseEvent*, unsigned int)>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/pointer_input.cpp:287:28:   required from here
#  287 |     input()->processFilters(std::bind(&InputEventFilter::pointerEvent, std::placeholders::_1, &event, button));
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def4]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, KWin::MouseEvent*, unsigned int))(KWin::MouseEvent*, unsigned int)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>, KWin::WheelEvent*))(KWin::WheelEvent*)>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/pointer_input.cpp:312:28:   required from here
#  312 |     input()->processFilters(std::bind(&InputEventFilter::wheelEvent, std::placeholders::_1, &wheelEvent));
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def5]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, KWin::SwitchEvent*))(KWin::SwitchEvent*)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/keyboard_input.h:11: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/keyboard_input.cpp:9: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>, KWin::KeyEvent*))(KWin::KeyEvent*)>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/keyboard_input.cpp:268:28:   required from here
#  268 |     m_input->processFilters(std::bind(&InputEventFilter::keyEvent, std::placeholders::_1, &event));
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def6]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, KWin::TabletEvent*))(KWin::TabletEvent*)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/algorithm:61: included_from: Included from here.
/usr/include/qt6/QtCore/qcontainertools_impl.h:22: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydataops.h:9: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydatapointer.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qbytearray.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qstringview.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qchar.h:656: included_from: Included from here.
/usr/include/qt6/QtCore/qlatin1stringview.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/QLatin1String:1: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/redhat-linux-build/src/config-kwin.h:2: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:12: included_from: Included from here.
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>, unsigned int, bool, KWin::TabletToolId, std::chrono::duration<long int, std::ratio<1, 1000000> >))(unsigned int, bool, const KWin::TabletToolId&, std::chrono::duration<long int, std::ratio<1, 1000000> >)>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/tablet_input.cpp:100:28:   required from here
#  100 |     input()->processFilters(std::bind(&InputEventFilter::tabletToolButtonEvent,
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  101 |                                       std::placeholders::_1, button, isPressed, tabletToolId, time));
#      |                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def7]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, KWin::WheelEvent*))(KWin::WheelEvent*)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>, int, std::chrono::duration<long int, std::ratio<1, 1000000> >))(int, std::chrono::duration<long int, std::ratio<1, 1000000> >)>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/pointer_input.cpp:323:28:   required from here
#  323 |     input()->processFilters(std::bind(&InputEventFilter::swipeGestureBegin, std::placeholders::_1, fingerCount, time));
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def8]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, QPointF, chrono::duration<long int, ratio<1, 1000000> >))(const QPointF&, chrono::duration<long int, ratio<1, 1000000> >)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>, std::chrono::duration<long int, std::ratio<1, 1000000> >))(std::chrono::duration<long int, std::ratio<1, 1000000> >)>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/pointer_input.cpp:347:28:   required from here
#  347 |     input()->processFilters(std::bind(&InputEventFilter::swipeGestureEnd, std::placeholders::_1, time));
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def9]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, chrono::duration<long int, ratio<1, 1000000> >))(chrono::duration<long int, ratio<1, 1000000> >)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>, double, double, QPointF, std::chrono::duration<long int, std::ratio<1, 1000000> >))(double, double, const QPointF&, std::chrono::duration<long int, std::ratio<1, 1000000> >)>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/pointer_input.cpp:383:28:   required from here
#  383 |     input()->processFilters(std::bind(&InputEventFilter::pinchGestureUpdate, std::placeholders::_1, scale, angleDelta, delta, time));
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def10]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, double, double, QPointF, chrono::duration<long int, ratio<1, 1000000> >))(double, double, const QPointF&, chrono::duration<long int, ratio<1, 1000000> >)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>))()>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/pointer_input.cpp:449:28:   required from here
#  449 |     input()->processFilters(std::bind(&InputEventFilter::pointerFrame, std::placeholders::_1));
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def11]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, int, QPointF, chrono::duration<long int, ratio<1, 1000000> >))(int, const QPointF&, chrono::duration<long int, ratio<1, 1000000> >)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/algorithm:61: included_from: Included from here.
/usr/include/qt6/QtCore/qcontainertools_impl.h:22: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydataops.h:9: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydatapointer.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qbytearray.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qstringview.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qchar.h:656: included_from: Included from here.
/usr/include/qt6/QtCore/qlatin1stringview.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/QLatin1String:1: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/redhat-linux-build/src/config-kwin.h:2: included_from: Included from here.
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:12: included_from: Included from here.
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>, int, std::chrono::duration<long int, std::ratio<1, 1000000> >))(int, std::chrono::duration<long int, std::ratio<1, 1000000> >)>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/touch_input.cpp:160:28:   required from here
#  160 |     input()->processFilters(std::bind(&InputEventFilter::touchUp, std::placeholders::_1, id, time));
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def12]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, int, chrono::duration<long int, ratio<1, 1000000> >))(int, chrono::duration<long int, ratio<1, 1000000> >)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>, QPointF, std::chrono::duration<long int, std::ratio<1, 1000000> >))(const QPointF&, std::chrono::duration<long int, std::ratio<1, 1000000> >)>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/pointer_input.cpp:335:28:   required from here
#  335 |     input()->processFilters(std::bind(&InputEventFilter::swipeGestureUpdate, std::placeholders::_1, delta, time));
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def13]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, int, int, bool, KWin::TabletPadId, chrono::duration<long int, ratio<1, 1000000> >))(int, int, bool, const KWin::TabletPadId&, chrono::duration<long int, ratio<1, 1000000> >)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def14]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, unsigned int, bool, KWin::TabletPadId, chrono::duration<long int, ratio<1, 1000000> >))(unsigned int, bool, const KWin::TabletPadId&, chrono::duration<long int, ratio<1, 1000000> >)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>, int, int, bool, KWin::TabletPadId, std::chrono::duration<long int, std::ratio<1, 1000000> >))(int, int, bool, const KWin::TabletPadId&, std::chrono::duration<long int, std::ratio<1, 1000000> >)>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/tablet_input.cpp:120:28:   required from here
#  120 |     input()->processFilters(std::bind(&InputEventFilter::tabletPadStripEvent,
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  121 |                                       std::placeholders::_1, number, position, isFinger, tabletPadId, time));
#      |                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Error: COMPILER_WARNING (CWE-252): [#def15]
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h:194:20: warning[-Wunused-result]: ignoring return value of ‘constexpr bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = QList<KWin::InputEventFilter*>::const_iterator; _Predicate = _Bind<bool (KWin::InputEventFilter::*(_Placeholder<1>, unsigned int, bool, KWin::TabletToolId, chrono::duration<long int, ratio<1, 1000000> >))(unsigned int, bool, const KWin::TabletToolId&, chrono::duration<long int, ratio<1, 1000000> >)>]’, declared with attribute ‘nodiscard’
#  194 |         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/input.h: scope_hint: In instantiation of ‘void KWin::InputRedirection::processFilters(UnaryPredicate) [with UnaryPredicate = std::_Bind<bool (KWin::InputEventFilter::*(std::_Placeholder<1>, unsigned int, bool, KWin::TabletPadId, std::chrono::duration<long int, std::ratio<1, 1000000> >))(unsigned int, bool, const KWin::TabletPadId&, std::chrono::duration<long int, std::ratio<1, 1000000> >)>]’
#/builddir/build/BUILD/kwin-x11-6.0.3.1-build/kwin-6.0.3.1/src/tablet_input.cpp:110:28:   required from here
#  110 |     input()->processFilters(std::bind(&InputEventFilter::tabletPadButtonEvent,
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  111 |                                       std::placeholders::_1, button, isPressed, tabletPadId, time));
#      |                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  192|       void processFilters(UnaryPredicate function)
#  193|       {
#  194|->         std::any_of(m_filters.constBegin(), m_filters.constEnd(), function);
#  195|       }
#  196|   

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-106.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namekwin-x11-6.1.1.2-1.fc41
diffbase-store-results-to/tmp/tmp9ahx9wzh/kwin-x11-6.1.1.2-1.fc41.tar.xz
diffbase-time-created2024-07-03 14:45:08
diffbase-time-finished2024-07-03 15:04:57
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp9ahx9wzh/kwin-x11-6.1.1.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp9ahx9wzh/kwin-x11-6.1.1.2-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-106.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekwin-x11-6.0.3.1-1.fc40
store-results-to/tmp/tmpuf3kryin/kwin-x11-6.0.3.1-1.fc40.tar.xz
time-created2024-07-03 14:24:31
time-finished2024-07-03 14:44:42
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpuf3kryin/kwin-x11-6.0.3.1-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpuf3kryin/kwin-x11-6.0.3.1-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9