Error: COMPILER_WARNING (CWE-477): [#def1] deepin-shortcut-viewer-5.0.9-build/deepin-shortcut-viewer-5.0.9/main.cpp: scope_hint: In function ‘int main(int, char**)’ deepin-shortcut-viewer-5.0.9-build/deepin-shortcut-viewer-5.0.9/main.cpp:29:17: warning[-Wdeprecated-declarations]: ‘void Dtk::Widget::DApplication::setTheme(const QString&)’ is deprecated # 29 | app.setTheme("dark"); # | ~~~~~~~~~~~~^~~~~~~~ /usr/include/dtk5/DWidget/DApplication:1: included_from: Included from here. deepin-shortcut-viewer-5.0.9-build/deepin-shortcut-viewer-5.0.9/singleapplication.h:12: included_from: Included from here. deepin-shortcut-viewer-5.0.9-build/deepin-shortcut-viewer-5.0.9/main.cpp:13: included_from: Included from here. /usr/include/dtk5/DWidget/dapplication.h:55:28: note: declared here # 55 | D_DECL_DEPRECATED void setTheme(const QString &theme); # | ^~~~~~~~ # 27| app.setApplicationName(QObject::tr("Deepin Shortcut Viewer")); # 28| app.setApplicationVersion("v1.0"); # 29|-> app.setTheme("dark"); # 30| # 31| //Logger handle Error: COMPILER_WARNING (CWE-477): [#def2] deepin-shortcut-viewer-5.0.9-build/deepin-shortcut-viewer-5.0.9/view/shortcutview.cpp: scope_hint: In member function ‘void ShortcutView::setData(const QString&)’ deepin-shortcut-viewer-5.0.9-build/deepin-shortcut-viewer-5.0.9/view/shortcutview.cpp:37:20: warning[-Wdeprecated-declarations]: ‘QByteArray& QByteArray::append(const QString&)’ is deprecated: Use QString's toUtf8(), toLatin1() or toLocal8Bit() # 37 | byteArry.append(data); # | ~~~~~~~~~~~~~~~^~~~~~ /usr/include/qt5/QtCore/qobject.h:47: included_from: Included from here. /usr/include/qt5/QtWidgets/qwidget.h:45: included_from: Included from here. /usr/include/qt5/QtWidgets/QWidget:1: included_from: Included from here. deepin-shortcut-viewer-5.0.9-build/deepin-shortcut-viewer-5.0.9/view/shortcutview.h:8: included_from: Included from here. deepin-shortcut-viewer-5.0.9-build/deepin-shortcut-viewer-5.0.9/view/shortcutview.cpp:5: included_from: Included from here. /usr/include/qt5/QtCore/qstring.h:1508:20: note: declared here # 1508 | inline QByteArray &QByteArray::append(const QString &s) # | ^~~~~~~~~~ # 35| { # 36| QByteArray byteArry; # 37|-> byteArry.append(data); # 38| # 39| QJsonParseError jsError;
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-39.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | deepin-shortcut-viewer-5.0.9-1.fc42 |
store-results-to | /tmp/tmpk6z43zkt/deepin-shortcut-viewer-5.0.9-1.fc42.tar.xz |
time-created | 2024-11-12 23:46:03 |
time-finished | 2024-11-12 23:47:22 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpk6z43zkt/deepin-shortcut-viewer-5.0.9-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpk6z43zkt/deepin-shortcut-viewer-5.0.9-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |