2026-05-03 03:11 ftp://ftp.de.debian.org/debian/pool/main/libd/libdmx/libdmx_1.1.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 28 28 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: libdmx-1.1.4/src/dmx.c:132:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXQueryVersion [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:160:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXSync [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:187:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXForceWindowCreation [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:216:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXGetScreenCount [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:247:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXGetScreenAttributes [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:320:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD32 [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:355:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD32 [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:379:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DmxBadValue [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:435:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXAddScreen [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:472:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXRemoveScreen [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:520:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXGetWindowAttributes [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:596:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXGetDesktopAttributes [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:638:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD32 [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:658:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXChangeDesktopAttributes [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:688:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXGetInputCount [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:719:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXGetInputAttributes [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:775:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXAddInput [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:803:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMXInputType [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:819:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMXInputType [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:841:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X_DMXRemoveInput [valueFlowBailoutIncompleteVar] libdmx-1.1.4/src/dmx.c:288:68: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] libdmx-1.1.4/src/dmx.c:324:66: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] libdmx-1.1.4/src/dmx.c:363:37: style: Parameter 'screens' can be declared as pointer to const. However it seems that 'DMXChangeScreensAttributes' is a callback function, if 'screens' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libdmx-1.1.4/src/dmx.c:382:12: note: You might need to cast the function pointer here libdmx-1.1.4/src/dmx.c:363:37: note: Parameter 'screens' can be declared as pointer to const libdmx-1.1.4/src/dmx.c:365:46: style: Parameter 'masks' can be declared as pointer to const. However it seems that 'DMXChangeScreensAttributes' is a callback function, if 'masks' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libdmx-1.1.4/src/dmx.c:382:12: note: You might need to cast the function pointer here libdmx-1.1.4/src/dmx.c:365:46: note: Parameter 'masks' can be declared as pointer to const libdmx-1.1.4/src/dmx.c:612:70: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] libdmx-1.1.4/src/dmx.c:315:23: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] libdmx-1.1.4/src/dmx.c:314:19: note: Assuming that condition 'i<32' is not redundant libdmx-1.1.4/src/dmx.c:315:23: note: Shift libdmx-1.1.4/src/dmx.c:350:23: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] libdmx-1.1.4/src/dmx.c:349:19: note: Assuming that condition 'i<32' is not redundant libdmx-1.1.4/src/dmx.c:350:23: note: Shift libdmx-1.1.4/src/dmx.c:633:23: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] libdmx-1.1.4/src/dmx.c:632:19: note: Assuming that condition 'i<32' is not redundant libdmx-1.1.4/src/dmx.c:633:23: note: Shift diff: DONE