sddm-0.21.0-6.fc42

List of Findings

Error: SHELLCHECK_WARNING: [#def1]
/etc/sddm/wayland-session:16:5: warning[SC3044]: In POSIX sh, 'shopt' is undefined.
#   14|     */bash)
#   15|       [ -z "$BASH" ] && exec $SHELL --login $0 "$@"
#   16|->     shopt -q login_shell || exec $SHELL --login $0 "$@"
#   17|       set +o posix
#   18|       ;;

Error: SHELLCHECK_WARNING: [#def2]
/etc/sddm/wayland-session:17:12: warning[SC3040]: In POSIX sh, set option posix is undefined.
#   15|       [ -z "$BASH" ] && exec $SHELL --login $0 "$@"
#   16|       shopt -q login_shell || exec $SHELL --login $0 "$@"
#   17|->     set +o posix
#   18|       ;;
#   19|     */zsh)

Error: SHELLCHECK_WARNING: [#def3]
/etc/sddm/wayland-session:21:5: warning[SC3010]: In POSIX sh, [[ ]] is undefined.
#   19|     */zsh)
#   20|       [ -z "$ZSH_NAME" ] && exec $SHELL --login $0 "$@"
#   21|->     [[ -o login ]] || exec $SHELL --login $0 "$@"
#   22|       emulate -R sh
#   23|       ;;

Error: SHELLCHECK_WARNING (CWE-88): [#def4]
/etc/sddm/wayland-session:49:6: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#   47|   export SHELL=$SDDM_USER_SHELL
#   48|   
#   49|-> exec $@

Error: SHELLCHECK_WARNING: [#def5]
/usr/share/sddm/scripts/Xsession:12:5: warning[SC3044]: In POSIX sh, 'shopt' is undefined.
#   10|     */bash)
#   11|       [ -z "$BASH" ] && exec $SHELL --login $0 "$@"
#   12|->     shopt -q login_shell || exec $SHELL --login $0 "$@"
#   13|       set +o posix
#   14|       ;;

Error: SHELLCHECK_WARNING: [#def6]
/usr/share/sddm/scripts/Xsession:13:12: warning[SC3040]: In POSIX sh, set option posix is undefined.
#   11|       [ -z "$BASH" ] && exec $SHELL --login $0 "$@"
#   12|       shopt -q login_shell || exec $SHELL --login $0 "$@"
#   13|->     set +o posix
#   14|       ;;
#   15|     */zsh)

Error: SHELLCHECK_WARNING: [#def7]
/usr/share/sddm/scripts/Xsession:17:5: warning[SC3010]: In POSIX sh, [[ ]] is undefined.
#   15|     */zsh)
#   16|       [ -z "$ZSH_NAME" ] && exec $SHELL --login $0 "$@"
#   17|->     [[ -o login ]] || exec $SHELL --login $0 "$@"
#   18|       emulate -R sh
#   19|       ;;

Error: SHELLCHECK_WARNING (CWE-563): [#def8]
/usr/share/sddm/scripts/Xsession:59:1: warning[SC2034]: OPTIONFILE appears unused. Verify use (or export if used externally).
#   57|   # by the scripts to work
#   58|   xsessionddir="/etc/X11/Xsession.d"
#   59|-> OPTIONFILE=/etc/X11/Xsession.options
#   60|   USERXSESSION=$HOME/.xsession
#   61|   USERXSESSIONRC=$HOME/.xsessionrc

Error: SHELLCHECK_WARNING (CWE-563): [#def9]
/usr/share/sddm/scripts/Xsession:62:1: warning[SC2034]: ALTUSERXSESSION appears unused. Verify use (or export if used externally).
#   60|   USERXSESSION=$HOME/.xsession
#   61|   USERXSESSIONRC=$HOME/.xsessionrc
#   62|-> ALTUSERXSESSION=$HOME/.Xsession
#   63|   
#   64|   if [ -d "$xsessionddir" ]; then

Error: SHELLCHECK_WARNING (CWE-398): [#def10]
/usr/share/sddm/scripts/Xsession:65:14: error[SC2045]: Iterating over ls output is fragile. Use globs.
#   63|   
#   64|   if [ -d "$xsessionddir" ]; then
#   65|->     for i in `ls $xsessionddir`; do
#   66|           script="$xsessionddir/$i"
#   67|           echo "Loading X session script $script"

Error: SHELLCHECK_WARNING (CWE-477): [#def11]
/usr/share/sddm/scripts/Xsession:68:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   66|           script="$xsessionddir/$i"
#   67|           echo "Loading X session script $script"
#   68|->         if [ -r "$script"  -a -f "$script" ] && expr "$i" : '^[[:alnum:]_-]\{1,\}$' > /dev/null; then
#   69|               . "$script"
#   70|           fi

Error: SHELLCHECK_WARNING (CWE-88): [#def12]
/usr/share/sddm/scripts/Xsession:93:10: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#   91|       exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session."
#   92|   else
#   93|->     exec $@
#   94|   fi

Error: SHELLCHECK_WARNING: [#def13]
/usr/share/sddm/scripts/wayland-session:16:5: warning[SC3044]: In POSIX sh, 'shopt' is undefined.
#   14|     */bash)
#   15|       [ -z "$BASH" ] && exec $SHELL --login $0 "$@"
#   16|->     shopt -q login_shell || exec $SHELL --login $0 "$@"
#   17|       set +o posix
#   18|       ;;

Error: SHELLCHECK_WARNING: [#def14]
/usr/share/sddm/scripts/wayland-session:17:12: warning[SC3040]: In POSIX sh, set option posix is undefined.
#   15|       [ -z "$BASH" ] && exec $SHELL --login $0 "$@"
#   16|       shopt -q login_shell || exec $SHELL --login $0 "$@"
#   17|->     set +o posix
#   18|       ;;
#   19|     */zsh)

Error: SHELLCHECK_WARNING: [#def15]
/usr/share/sddm/scripts/wayland-session:21:5: warning[SC3010]: In POSIX sh, [[ ]] is undefined.
#   19|     */zsh)
#   20|       [ -z "$ZSH_NAME" ] && exec $SHELL --login $0 "$@"
#   21|->     [[ -o login ]] || exec $SHELL --login $0 "$@"
#   22|       emulate -R sh
#   23|       ;;

Error: SHELLCHECK_WARNING (CWE-88): [#def16]
/usr/share/sddm/scripts/wayland-session:49:6: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#   47|   export SHELL=$SDDM_USER_SHELL
#   48|   
#   49|-> exec $@

Error: COMPILER_WARNING (CWE-477): [#def17]
sddm-0.21.0-build/sddm-0.21.0/src/helper/HelperApp.h:27: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/redhat-linux-build/src/helper/sddm-helper_autogen/EWIEGA46WW/moc_HelperApp.cpp:9: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/redhat-linux-build/src/helper/sddm-helper_autogen/mocs_compilation.cpp:7: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthMessages.h: scope_hint: In function ‘QDataStream& SDDM::operator<<(QDataStream&, const Request&)’
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthMessages.h:191:39: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QList<SDDM::Prompt>; typename std::add_const<_Tp>::type = const QList<SDDM::Prompt>]’ is deprecated: Use std::as_const() instead.
#  191 |         for(const Prompt &p : qAsConst(m.prompts)) {
#      |                               ~~~~~~~~^~~~~~~~~~~
/usr/include/qt6/QtCore/qforeach.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qglobal.h:57: included_from: Included from here.
/usr/include/qt6/QtCore/qnamespace.h:12: included_from: Included from here.
/usr/include/qt6/QtCore/qobjectdefs.h:12: included_from: Included from here.
/usr/include/qt6/QtCore/qobject.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/QObject:1: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.h:24: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/auth/Auth.h:24: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/redhat-linux-build/src/helper/sddm-helper_autogen/FQWVTXS267/moc_Auth.cpp:9: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/redhat-linux-build/src/helper/sddm-helper_autogen/mocs_compilation.cpp:2: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#  189|           qint32 length = m.prompts.length();
#  190|           s << length;
#  191|->         for(const Prompt &p : qAsConst(m.prompts)) {
#  192|               s << p;
#  193|           }

Error: COMPILER_WARNING (CWE-477): [#def18]
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.cpp: scope_hint: In member function ‘void SDDM::AuthRequest::Private::responseChanged()’
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.cpp:41:45: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<SDDM::AuthPrompt*>; typename std::add_const<_Tp>::type = const QList<SDDM::AuthPrompt*>]’ is deprecated: Use std::as_const() instead.
#   41 |         for(const AuthPrompt *qap : qAsConst(prompts)) {
#      |                                     ~~~~~~~~^~~~~~~~~
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#   39|   
#   40|       void AuthRequest::Private::responseChanged() {
#   41|->         for(const AuthPrompt *qap : qAsConst(prompts)) {
#   42|               if (qap->response().isEmpty())
#   43|                   return;

Error: COMPILER_WARNING (CWE-477): [#def19]
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.cpp: scope_hint: In member function ‘void SDDM::AuthRequest::setRequest(const SDDM::Request*)’
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.cpp:57:44: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QList<SDDM::Prompt>; typename std::add_const<_Tp>::type = const QList<SDDM::Prompt>]’ is deprecated: Use std::as_const() instead.
#   57 |             for (const Prompt& p : qAsConst(request->prompts)) {
#      |                                    ~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#   55|           d->prompts.clear();
#   56|           if (request != nullptr) {
#   57|->             for (const Prompt& p : qAsConst(request->prompts)) {
#   58|                   AuthPrompt *qap = new AuthPrompt(&p, this);
#   59|                   d->prompts << qap;

Error: COMPILER_WARNING (CWE-477): [#def20]
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.cpp: scope_hint: In member function ‘SDDM::Request SDDM::AuthRequest::request() const’
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.cpp:99:46: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<SDDM::AuthPrompt*>; typename std::add_const<_Tp>::type = const QList<SDDM::AuthPrompt*>]’ is deprecated: Use std::as_const() instead.
#   99 |         for (const AuthPrompt* qap : qAsConst(d->prompts)) {
#      |                                      ~~~~~~~~^~~~~~~~~~~~
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#   97|       Request AuthRequest::request() const {
#   98|           Request r;
#   99|->         for (const AuthPrompt* qap : qAsConst(d->prompts)) {
#  100|               Prompt p;
#  101|               p.hidden = qap->hidden();

Error: COMPILER_WARNING (CWE-477): [#def21]
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp: scope_hint: In member function ‘void SDDM::ConfigBase::load()’
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp:185:48: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QString>; typename std::add_const<_Tp>::type = const QList<QString>]’ is deprecated: Use std::as_const() instead.
#  185 |         for (const QString &filepath : qAsConst(files)) {
#      |                                        ~~~~~~~~^~~~~~~
/usr/include/qt6/QtCore/qforeach.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qglobal.h:57: included_from: Included from here.
/usr/include/qt6/QtCore/qchar.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qstring.h:14: included_from: Included from here.
/usr/include/qt6/QtCore/QString:1: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.h:24: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp:21: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#  183|           m_fileModificationTime = latestModificationTime;
#  184|   
#  185|->         for (const QString &filepath : qAsConst(files)) {
#  186|               loadInternal(filepath);
#  187|           }

Error: COMPILER_WARNING (CWE-477): [#def22]
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp: scope_hint: In member function ‘void SDDM::ConfigBase::save(const SDDM::ConfigSection*, const SDDM::ConfigEntryBase*)’
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp:248:57: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QMap<QString, SDDM::ConfigEntryBase*>; typename std::add_const<_Tp>::type = const QMap<QString, SDDM::ConfigEntryBase*>]’ is deprecated: Use std::as_const() instead.
#  248 |                 for (const ConfigEntryBase *b : qAsConst(section->entries()))
#      |                                                 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#  246|                   remainingEntries.insert(section, entry);
#  247|               else {
#  248|->                 for (const ConfigEntryBase *b : qAsConst(section->entries()))
#  249|                       if (!b->matchesDefault())
#  250|                           remainingEntries.insert(section, b);

Error: COMPILER_WARNING (CWE-477): [#def23]
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp:254:51: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QMap<QString, SDDM::ConfigSection*>; typename std::add_const<_Tp>::type = const QMap<QString, SDDM::ConfigSection*>]’ is deprecated: Use std::as_const() instead.
#  254 |             for (const ConfigSection *s : qAsConst(m_sections)) {
#      |                                           ~~~~~~~~^~~~~~~~~~~~
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#  252|           }
#  253|           else {
#  254|->             for (const ConfigSection *s : qAsConst(m_sections)) {
#  255|                   for (const ConfigEntryBase *b : qAsConst(s->entries()))
#  256|                       if (!b->matchesDefault())

Error: COMPILER_WARNING (CWE-477): [#def24]
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp:255:57: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QMap<QString, SDDM::ConfigEntryBase*>; typename std::add_const<_Tp>::type = const QMap<QString, SDDM::ConfigEntryBase*>]’ is deprecated: Use std::as_const() instead.
#  255 |                 for (const ConfigEntryBase *b : qAsConst(s->entries()))
#      |                                                 ~~~~~~~~^~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#  253|           else {
#  254|               for (const ConfigSection *s : qAsConst(m_sections)) {
#  255|->                 for (const ConfigEntryBase *b : qAsConst(s->entries()))
#  256|                       if (!b->matchesDefault())
#  257|                           remainingEntries.insert(s, b);

Error: COMPILER_WARNING (CWE-477): [#def25]
sddm-0.21.0-build/sddm-0.21.0/src/common/Session.cpp: scope_hint: In member function ‘void SDDM::Session::setTo(Type, const QString&)’
sddm-0.21.0-build/sddm-0.21.0/src/common/Session.cpp:209:40: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QString>; typename std::add_const<_Tp>::type = const QList<QString>]’ is deprecated: Use std::as_const() instead.
#  209 |         for (const auto &path: qAsConst(sessionDirs)) {
#      |                                ~~~~~~~~^~~~~~~~~~~~~
/usr/include/qt6/QtCore/qforeach.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qglobal.h:57: included_from: Included from here.
/usr/include/qt6/QtCore/qiodevice.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qfiledevice.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qfile.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/QFile:1: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/common/Session.cpp:21: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#  207|   
#  208|           QFile file;
#  209|->         for (const auto &path: qAsConst(sessionDirs)) {
#  210|               m_dir.setPath(path);
#  211|               m_fileName = m_dir.absoluteFilePath(fileName);

Error: COMPILER_WARNING (CWE-477): [#def26]
sddm-0.21.0-build/sddm-0.21.0/src/common/Session.cpp: scope_hint: In lambda function
sddm-0.21.0-build/sddm-0.21.0/src/common/Session.cpp:237:43: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QString>; typename std::add_const<_Tp>::type = const QList<QString>]’ is deprecated: Use std::as_const() instead.
#  237 |             for (QString locale : qAsConst(locales)) {
#      |                                   ~~~~~~~~^~~~~~~~~
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#  235|   
#  236|           auto localizedValue = [&] (const QLatin1String &key) {
#  237|->             for (QString locale : qAsConst(locales)) {
#  238|                   QString localizedValue = settings.value(key + QLatin1Char('[') + locale + QLatin1Char(']'), QString()).toString();
#  239|                   if (!localizedValue.isEmpty()) {

Error: COMPILER_WARNING (CWE-477): [#def27]
sddm-0.21.0-build/sddm-0.21.0/src/greeter/GreeterApp.cpp: scope_hint: In member function ‘void SDDM::GreeterApp::activatePrimary()’
sddm-0.21.0-build/sddm-0.21.0/src/greeter/GreeterApp.cpp:291:41: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QQuickView*>; typename std::add_const<_Tp>::type = const QList<QQuickView*>]’ is deprecated: Use std::as_const() instead.
#  291 |         for (QQuickView *view : qAsConst(m_views)) {
#      |                                 ~~~~~~~~^~~~~~~~~
/usr/include/qt6/QtCore/qforeach.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qglobal.h:57: included_from: Included from here.
/usr/include/qt6/QtCore/qnamespace.h:12: included_from: Included from here.
/usr/include/qt6/QtCore/qobjectdefs.h:12: included_from: Included from here.
/usr/include/qt6/QtCore/qobject.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/QObject:1: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/greeter/GreeterApp.h:24: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/greeter/GreeterApp.cpp:21: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#  289|       void GreeterApp::activatePrimary() {
#  290|           // activate and give focus to the window assigned to the primary screen
#  291|->         for (QQuickView *view : qAsConst(m_views)) {
#  292|               if (view->screen() == QGuiApplication::primaryScreen()) {
#  293|                   view->requestActivate();

Error: COMPILER_WARNING (CWE-477): [#def28]
sddm-0.21.0-build/sddm-0.21.0/src/greeter/GreeterApp.cpp: scope_hint: In function ‘int main(int, char**)’
sddm-0.21.0-build/sddm-0.21.0/src/greeter/GreeterApp.cpp:337:43: warning[-Wdeprecated-declarations]: ‘Qt::AA_EnableHighDpiScaling’ is deprecated: High-DPI scaling is always enabled. This attribute no longer has any effect.
#  337 |         QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#      |                                           ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qnamespace.h:451:9: note: declared here
#  451 |         AA_EnableHighDpiScaling Q_DECL_ENUMERATOR_DEPRECATED_X(
#      |         ^~~~~~~~~~~~~~~~~~~~~~~
#  335|       if (hiDpiEnabled) {
#  336|           qDebug() << "High-DPI autoscaling Enabled";
#  337|->         QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#  338|       } else {
#  339|           qDebug() << "High-DPI autoscaling not Enabled";

Error: COMPILER_WARNING (CWE-477): [#def29]
sddm-0.21.0-build/sddm-0.21.0/src/greeter/SessionModel.cpp: scope_hint: In member function ‘void SDDM::SessionModel::populate(SDDM::Session::Type, const QStringList&)’
sddm-0.21.0-build/sddm-0.21.0/src/greeter/SessionModel.cpp:138:38: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QString>; typename std::add_const<_Tp>::type = const QList<QString>]’ is deprecated: Use std::as_const() instead.
#  138 |         for (auto& session : qAsConst(sessions)) {
#      |                              ~~~~~~~~^~~~~~~~~~
/usr/include/qt6/QtCore/qforeach.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qglobal.h:57: included_from: Included from here.
/usr/include/qt6/QtCore/qscopedpointer.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qdatastream.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/QDataStream:1: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/common/Session.h:23: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/greeter/SessionModel.h:24: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/greeter/SessionModel.cpp:21: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#  136|           // read session
#  137|           sessions.removeDuplicates();
#  138|->         for (auto& session : qAsConst(sessions)) {
#  139|               Session *si = new Session(type, session);
#  140|               bool execAllowed = true;

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-183.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namesddm-0.21.0-6.fc42
store-results-to/tmp/tmpleyzcsqx/sddm-0.21.0-6.fc42.tar.xz
time-created2024-11-13 03:14:06
time-finished2024-11-13 03:16:59
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpleyzcsqx/sddm-0.21.0-6.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpleyzcsqx/sddm-0.21.0-6.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9