2025-11-23 14:05 ftp://ftp.de.debian.org/debian/pool/main/q/qt6-serialport/qt6-serialport_6.9.2.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --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-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 83 83 elapsed-time: 0.6 0.6 head-timing-info: old-timing-info: head results: qtserialport-everywhere-src-6.9.2/examples/serialport/blockingreceiver/receiverthread.cpp:66:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/examples/serialport/blockingreceiver/receiverthread.cpp:84:31: style: Local variable 'request' shadows outer function [shadowFunction] qtserialport-everywhere-src-6.9.2/examples/serialport/blockingreceiver/receiverthread.h:23:10: note: Shadowed declaration qtserialport-everywhere-src-6.9.2/examples/serialport/blockingreceiver/receiverthread.cpp:84:31: note: Shadow variable qtserialport-everywhere-src-6.9.2/examples/serialport/blockingsender/senderthread.cpp:71:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/examples/serialport/blockingsender/senderthread.cpp:89:31: style: Local variable 'response' shadows outer function [shadowFunction] qtserialport-everywhere-src-6.9.2/examples/serialport/blockingsender/senderthread.h:23:10: note: Shadowed declaration qtserialport-everywhere-src-6.9.2/examples/serialport/blockingsender/senderthread.cpp:89:31: note: Shadow variable qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/console.cpp:14:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable black [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/mainwindow.cpp:73:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/mainwindow.cpp:138:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ResourceError [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/mainwindow.cpp:166:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable close [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/settingsdialog.cpp:21:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoInsert [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/settingsdialog.cpp:91:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Baud9600 [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/settingsdialog.h:44:14: performance: Function 'settings()' should return member 'm_currentSettings' by const reference. [returnByReference] qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/settingsdialog.cpp:53:19: style: Local variable 'blankString' shadows outer variable [shadowVariable] qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/settingsdialog.cpp:12:19: note: Shadowed declaration qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/settingsdialog.cpp:53:19: note: Shadow variable qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/settingsdialog.cpp:123:19: style: Local variable 'blankString' shadows outer variable [shadowVariable] qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/settingsdialog.cpp:12:19: note: Shadowed declaration qtserialport-everywhere-src-6.9.2/examples/serialport/terminal/settingsdialog.cpp:123:19: note: Shadow variable qtserialport-everywhere-src-6.9.2/src/serialport/qserialport.h:155:0: error: failed to evaluate #if condition, undefined function-like macro invocation: QT_SERIALPORT_REMOVED_SINCE( ... ) [syntaxError] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier_p.h:32:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d_ptr [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier.cpp:82:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d_ptr [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier.cpp:162:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier.cpp:173:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier.cpp:227:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier.cpp:245:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier.cpp:285:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier.cpp:361:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier.cpp:378:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WAIT_OBJECT_0 [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier.cpp:407:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier_p.h:36:5: style: Class 'QWinOverlappedIoNotifier' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier.cpp:68:5: style: Struct 'IOResult' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier.cpp:302:5: style: Class 'QScopedAtomicIntIncrementor' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qtserialport-everywhere-src-6.9.2/src/serialport/qwinoverlappedionotifier.cpp:345:21: style: Variable 'triggeredOverlapped' can be declared as pointer to const [constVariablePointer] qtserialport-everywhere-src-6.9.2/src/serialport/removed_api.cpp:10:0: error: failed to evaluate #if condition, undefined function-like macro invocation: QT_SERIALPORT_REMOVED_SINCE( ... ) [syntaxError] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:186:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoError [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:256:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NotOpen [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:274:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errorOccurred [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:293:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DeviceNotFoundError [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:304:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable serialPortName [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:321:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Baud1200 [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:340:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable baudrate [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:357:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Data5 [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:370:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable databits [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:387:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoParity [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:403:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:418:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OneStop [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:432:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stopbits [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:449:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoFlowControl [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:461:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flowcontrol [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:479:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errorOccurred [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:518:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errorOccurred [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:555:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:618:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:653:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:678:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:692:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:707:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:725:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:744:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:782:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:833:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:856:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QueuedConnection [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:868:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:890:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:917:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QueuedConnection [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:929:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:969:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:988:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1015:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1063:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1112:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1138:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable finished [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1174:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1207:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1241:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable senderBaudRate [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1291:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SpaceParity [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1300:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Baud9600 [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1340:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Data5 [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1549:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable settingsRestoredOnCloseChanged [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1619:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1648:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable started [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1442:24: performance:inconclusive: Technically the member function 'PlatformSettings::getPortSettings' can be static (but you may consider moving to unnamed namespace). [functionStatic] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1425:10: note: Technically the member function 'PlatformSettings::getPortSettings' can be static (but you may consider moving to unnamed namespace). qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1442:24: note: Technically the member function 'PlatformSettings::getPortSettings' can be static (but you may consider moving to unnamed namespace). qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1462:24: performance:inconclusive: Technically the member function 'PlatformSettings::restorePortSettings' can be static (but you may consider moving to unnamed namespace). [functionStatic] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1426:10: note: Technically the member function 'PlatformSettings::restorePortSettings' can be static (but you may consider moving to unnamed namespace). qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1462:24: note: Technically the member function 'PlatformSettings::restorePortSettings' can be static (but you may consider moving to unnamed namespace). qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1612:16: performance: Function 'receivedData()' should return member 'm_data' by const reference. [returnByReference] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1430:14: style: Return value '!operator==(lhs,rhs)' is always true [knownConditionTrueFalse] qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1430:25: note: Calling function 'operator==' returns 0 qtserialport-everywhere-src-6.9.2/tests/auto/qserialport/tst_qserialport.cpp:1430:14: note: Return value '!operator==(lhs,rhs)' is always true qtserialport-everywhere-src-6.9.2/tests/auto/qserialportinfoprivate/tst_qserialportinfoprivate.cpp:67:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable source [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/manual/examples/receiver/dialog.cpp:65:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-6.9.2/tests/manual/examples/sender/dialog.cpp:62:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] diff: head qtserialport-everywhere-src-6.9.2/src/serialport/qserialport.h:155:0: error: failed to evaluate #if condition, undefined function-like macro invocation: QT_SERIALPORT_REMOVED_SINCE( ... ) [syntaxError] 2.18.0 qtserialport-everywhere-src-6.9.2/src/serialport/qserialport_p.h:65:0: error: #error Unsupported OS [preprocessorErrorDirective] 2.18.0 qtserialport-everywhere-src-6.9.2/src/serialport/qserialport_p.h:65:4: error: #error Unsupported OS [preprocessorErrorDirective] head qtserialport-everywhere-src-6.9.2/src/serialport/removed_api.cpp:10:0: error: failed to evaluate #if condition, undefined function-like macro invocation: QT_SERIALPORT_REMOVED_SINCE( ... ) [syntaxError] DONE