Error: COMPILER_WARNING: [#def1] kf5-karchive-5.116.0-build/karchive-5.116.0/src/kgzipfilter.cpp: scope_hint: In member function ‘bool KGzipFilter::init(int, Flag)’ kf5-karchive-5.116.0-build/karchive-5.116.0/src/kgzipfilter.cpp:74:26: warning[-Wzero-as-null-pointer-constant]: zero as null pointer constant # 74 | d->zStream.next_in = Z_NULL; # | ^~~~~~ # 72| terminate(); # 73| } # 74|-> d->zStream.next_in = Z_NULL; # 75| d->zStream.avail_in = 0; # 76| if (mode == QIODevice::ReadOnly) { Error: CLANG_WARNING: [#def2] kf5-karchive-5.116.0-build/karchive-5.116.0/src/kgzipfilter.cpp:158:10: warning[deadcode.DeadStores]: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i' # 156| const Bytef *p = d->zStream.next_in; # 157| int i = d->zStream.avail_in; # 158|-> if ((i -= 10) < 0) { # 159| return false; // Need at least 10 bytes # 160| } Error: CLANG_WARNING: [#def3] kf5-karchive-5.116.0-build/karchive-5.116.0/src/kzip.cpp:161:9: warning[deadcode.DeadStores]: Value stored to 'buffer' is never read # 159| } /*end if*/ # 160| pfi.ctime = uint((uchar)buffer[0] | (uchar)buffer[1] << 8 | (uchar)buffer[2] << 16 | (uchar)buffer[3] << 24); # 161|-> buffer += 4; # 162| } /*end if*/ # 163| Error: CLANG_WARNING: [#def4] kf5-karchive-5.116.0-build/karchive-5.116.0/src/kzip.cpp:196:9: warning[deadcode.DeadStores]: Value stored to 'buffer' is never read # 194| buffer += 2; # 195| pfi.gid = (uchar)buffer[0] | (uchar)buffer[1] << 8; # 196|-> buffer += 2; # 197| } /*end if*/ # 198| return true; Error: CLANG_WARNING: [#def5] kf5-karchive-5.116.0-build/karchive-5.116.0/src/kzip.cpp:469:13: warning[deadcode.DeadStores]: Value stored to 'startOfFile' is never read # 467| if (!memcmp(buffer, "PK\5\6", 4)) { // 'end of entries' # 468| // qCDebug(KArchiveLog) << "PK56 found end of archive"; # 469|-> startOfFile = false; # 470| break; # 471| }
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-48.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | kf5-karchive-5.116.0-1.fc41 |
store-results-to | /tmp/tmpzdzfsmid/kf5-karchive-5.116.0-1.fc41.tar.xz |
time-created | 2024-07-03 13:47:32 |
time-finished | 2024-07-03 13:48:45 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpzdzfsmid/kf5-karchive-5.116.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpzdzfsmid/kf5-karchive-5.116.0-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |