Fixed defects

List of Defects

Error: CLANG_WARNING: [#def1]
gnome-software-46.0-build/gnome-software-46.0/src/gs-hardware-support-context-dialog.c:250:26: warning[core.UndefinedBinaryOperatorResult]: The right operand of '==' is a garbage value
#  248|   	switch (comparator) {
#  249|   	case AS_RELATION_COMPARE_EQ:
#  250|-> 		return (comparand1.min == comparand2.min &&
#  251|   			comparand1.max == comparand2.max);
#  252|   	case AS_RELATION_COMPARE_NE:

Error: CLANG_WARNING: [#def2]
gnome-software-46.0-build/gnome-software-46.0/src/gs-hardware-support-context-dialog.c:253:26: warning[core.UndefinedBinaryOperatorResult]: The right operand of '!=' is a garbage value
#  251|   			comparand1.max == comparand2.max);
#  252|   	case AS_RELATION_COMPARE_NE:
#  253|-> 		return (comparand1.min != comparand2.min ||
#  254|   			comparand1.max != comparand2.max);
#  255|   	case AS_RELATION_COMPARE_LT:

Error: CLANG_WARNING: [#def3]
gnome-software-46.0-build/gnome-software-46.0/src/gs-hardware-support-context-dialog.c:256:26: warning[core.UndefinedBinaryOperatorResult]: The right operand of '<' is a garbage value
#  254|   			comparand1.max != comparand2.max);
#  255|   	case AS_RELATION_COMPARE_LT:
#  256|-> 		return (comparand1.max < comparand2.min);
#  257|   	case AS_RELATION_COMPARE_GT:
#  258|   		return (comparand1.min > comparand2.max);

Error: CLANG_WARNING: [#def4]
gnome-software-46.0-build/gnome-software-46.0/src/gs-hardware-support-context-dialog.c:258:26: warning[core.UndefinedBinaryOperatorResult]: The right operand of '>' is a garbage value
#  256|   		return (comparand1.max < comparand2.min);
#  257|   	case AS_RELATION_COMPARE_GT:
#  258|-> 		return (comparand1.min > comparand2.max);
#  259|   	case AS_RELATION_COMPARE_LE:
#  260|   		return (comparand1.max <= comparand2.max);

Error: CLANG_WARNING: [#def5]
gnome-software-46.0-build/gnome-software-46.0/src/gs-hardware-support-context-dialog.c:260:26: warning[core.UndefinedBinaryOperatorResult]: The right operand of '<=' is a garbage value
#  258|   		return (comparand1.min > comparand2.max);
#  259|   	case AS_RELATION_COMPARE_LE:
#  260|-> 		return (comparand1.max <= comparand2.max);
#  261|   	case AS_RELATION_COMPARE_GE:
#  262|   		return (comparand1.min >= comparand2.min);

Error: CLANG_WARNING: [#def6]
gnome-software-46.0-build/gnome-software-46.0/src/gs-hardware-support-context-dialog.c:262:26: warning[core.UndefinedBinaryOperatorResult]: The right operand of '>=' is a garbage value
#  260|   		return (comparand1.max <= comparand2.max);
#  261|   	case AS_RELATION_COMPARE_GE:
#  262|-> 		return (comparand1.min >= comparand2.min);
#  263|   	case AS_RELATION_COMPARE_UNKNOWN:
#  264|   	case AS_RELATION_COMPARE_LAST:

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-119.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegnome-software-46.2-1.fc41
diffbase-store-results-to/tmp/tmpo51n9o5_/gnome-software-46.2-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:59:48
diffbase-time-finished2024-07-03 13:06:24
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpo51n9o5_/gnome-software-46.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpo51n9o5_/gnome-software-46.2-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-119.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegnome-software-46.0-1.fc40
store-results-to/tmp/tmpnvj4yeil/gnome-software-46.0-1.fc40.tar.xz
time-created2024-07-03 12:52:36
time-finished2024-07-03 12:59:39
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpnvj4yeil/gnome-software-46.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpnvj4yeil/gnome-software-46.0-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9