Error: COMPILER_WARNING (CWE-252): [#def1] kf6-kservice-6.8.0-build/kservice-6.8.0/src/sycoca/kbuildsycoca.cpp: scope_hint: In member function ‘bool KBuildSycoca::recreate(bool)’ kf6-kservice-6.8.0-build/kservice-6.8.0/src/sycoca/kbuildsycoca.cpp:423:23: warning[-Wunused-result]: ignoring return value of ‘int fchown(int, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’ # 423 | fchown(database.handle(), uid, gid); # | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 421| const int gid = qEnvironmentVariableIntValue("SUDO_GID"); # 422| if (uid && gid) { # 423|-> fchown(database.handle(), uid, gid); # 424| } # 425| } Error: COMPILER_WARNING (CWE-843): [#def2] kf6-kservice-6.8.0-build/kservice-6.8.0/src/sycoca/kmemfile.cpp: scope_hint: In member function ‘virtual bool KMemFile::open(QIODeviceBase::OpenMode)’ kf6-kservice-6.8.0-build/kservice-6.8.0/src/sycoca/kmemfile.cpp:168:15: warning[-Wclass-memaccess]: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct KMemFile::Private::sharedInfoData’; use assignment or value-initialization instead # 168 | memset(infoPtr, 0, sizeof(Private::sharedInfoData)); # | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kf6-kservice-6.8.0-build/kservice-6.8.0/src/sycoca/kmemfile.cpp:21:12: note: ‘struct KMemFile::Private::sharedInfoData’ declared here # 21 | struct sharedInfoData { # | ^~~~~~~~~~~~~~ # 166| // no -> create it # 167| infoPtr = static_cast<Private::sharedInfoData *>(d->shmInfo.data()); # 168|-> memset(infoPtr, 0, sizeof(Private::sharedInfoData)); # 169| infoPtr->shmCounter = 1; # 170| if (!d->loadContentsFromFile()) {
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-254.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | kf6-kservice-6.8.0-1.fc42 |
store-results-to | /tmp/tmpkw9712lt/kf6-kservice-6.8.0-1.fc42.tar.xz |
time-created | 2024-11-13 01:00:26 |
time-finished | 2024-11-13 01:02:21 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpkw9712lt/kf6-kservice-6.8.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpkw9712lt/kf6-kservice-6.8.0-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |