Newly introduced defects

List of Defects

Error: CLANG_WARNING: [#def1]
libwacom-2.12.2-build/libwacom-2.12.2/tools/list-local-devices.c:149:15: warning[deadcode.DeadStores]: Value stored to 'type' during its initialization is never read
#  147|   	for (int i = 0; i < nstyli; i++) {
#  148|   		const WacomStylus *stylus = libwacom_stylus_get_for_id(db, styli[i]);
#  149|-> 		const char *type = "invalid";
#  150|   		WacomAxisTypeFlags axes = libwacom_stylus_get_axes(stylus);
#  151|   		WacomEraserType eraser_type = libwacom_stylus_get_eraser_type(stylus);

Error: CLANG_WARNING: [#def2]
libwacom-2.12.2-build/libwacom-2.12.2/tools/list-local-devices.c:152:15: warning[deadcode.DeadStores]: Value stored to 'etype' during its initialization is never read
#  150|   		WacomAxisTypeFlags axes = libwacom_stylus_get_axes(stylus);
#  151|   		WacomEraserType eraser_type = libwacom_stylus_get_eraser_type(stylus);
#  152|-> 		const char *etype= "unknown";
#  153|   
#  154|   		switch (libwacom_stylus_get_type(stylus)) {

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-152.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namelibwacom-2.10.0-1.fc40
diffbase-store-results-to/tmp/tmpvi59ti7k/libwacom-2.10.0-1.fc40.tar.xz
diffbase-time-created2024-07-03 16:00:03
diffbase-time-finished2024-07-03 16:01:30
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpvi59ti7k/libwacom-2.10.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpvi59ti7k/libwacom-2.10.0-1.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-152.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibwacom-2.12.2-1.fc41
store-results-to/tmp/tmpmyxenwj5/libwacom-2.12.2-1.fc41.tar.xz
time-created2024-07-03 16:01:47
time-finished2024-07-03 16:02:52
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpmyxenwj5/libwacom-2.12.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpmyxenwj5/libwacom-2.12.2-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9