Task #91261 - fixed.err

back to task #91261
download
Error: COMPILER_WARNING (CWE-195):
kinfocenter-6.4.5/kcms/about-distro/src/GPUEntryFactory.cpp: scope_hint: In function ‘bool {anonymous}::devicesAddUpAfterStripping(std::vector<GPUEntry::Device>&, bool)’
kinfocenter-6.4.5/kcms/about-distro/src/GPUEntryFactory.cpp:193:24: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘std::vector<GPUEntry::Device>::size_type’ {aka ‘long unsigned int’} and ‘int’
#  193 |     if (devices.size() != drmDeviceCount()) {
#      |         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
#  191|       }
#  192|   
#  193|->     if (devices.size() != drmDeviceCount()) {
#  194|           stripLlvmpipe(devices);
#  195|           if (devices.size() != drmDeviceCount()) {

Error: COMPILER_WARNING (CWE-195):
kinfocenter-6.4.5/kcms/about-distro/src/GPUEntryFactory.cpp:195:28: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘std::vector<GPUEntry::Device>::size_type’ {aka ‘long unsigned int’} and ‘int’
#  195 |         if (devices.size() != drmDeviceCount()) {
#      |             ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
#  193|       if (devices.size() != drmDeviceCount()) {
#  194|           stripLlvmpipe(devices);
#  195|->         if (devices.size() != drmDeviceCount()) {
#  196|               return false;
#  197|           }