2025-11-19 01:27 ftp://ftp.de.debian.org/debian/pool/main/q/qtserialport-opensource-src/qtserialport-opensource-src_5.15.17.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 -j4 platform: Linux-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: 1ca1246 (2025-11-18 18:56:39 +0100) count: 91 91 elapsed-time: 0.7 0.7 head-timing-info: old-timing-info: head results: qtserialport-everywhere-src-5.15.17/examples/serialport/blockingmaster/masterthread.cpp:118:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/blockingslave/dialog.cpp:100:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable currentIndexChanged [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/blockingmaster/masterthread.cpp:136:31: style: Local variable 'response' shadows outer function [shadowFunction] qtserialport-everywhere-src-5.15.17/examples/serialport/blockingmaster/masterthread.h:70:10: note: Shadowed declaration qtserialport-everywhere-src-5.15.17/examples/serialport/blockingmaster/masterthread.cpp:136:31: note: Shadow variable qtserialport-everywhere-src-5.15.17/examples/serialport/blockingslave/slavethread.cpp:110:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/cenumerator/main.cpp:58:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/blockingslave/slavethread.cpp:128:31: style: Local variable 'request' shadows outer function [shadowFunction] qtserialport-everywhere-src-5.15.17/examples/serialport/blockingslave/slavethread.h:70:10: note: Shadowed declaration qtserialport-everywhere-src-5.15.17/examples/serialport/blockingslave/slavethread.cpp:128:31: note: Shadow variable qtserialport-everywhere-src-5.15.17/examples/serialport/creaderasync/main.cpp:64:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/cenumerator/main.cpp:64:13: style: The scope of the variable 'description' can be reduced. [variableScope] qtserialport-everywhere-src-5.15.17/examples/serialport/cenumerator/main.cpp:65:13: style: The scope of the variable 'manufacturer' can be reduced. [variableScope] qtserialport-everywhere-src-5.15.17/examples/serialport/cenumerator/main.cpp:66:13: style: The scope of the variable 'serialNumber' can be reduced. [variableScope] qtserialport-everywhere-src-5.15.17/examples/serialport/creaderasync/serialportreader.cpp:94:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadError [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/creadersync/main.cpp:62:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/cwriterasync/main.cpp:65:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/creaderasync/serialportreader.cpp:92:65: style:inconclusive: Function 'handleError' argument 1 names different: declaration 'error' definition 'serialPortError'. [funcArgNamesDifferent] qtserialport-everywhere-src-5.15.17/examples/serialport/creaderasync/serialportreader.h:73:51: note: Function 'handleError' argument 1 names different: declaration 'error' definition 'serialPortError'. qtserialport-everywhere-src-5.15.17/examples/serialport/creaderasync/serialportreader.cpp:92:65: note: Function 'handleError' argument 1 names different: declaration 'error' definition 'serialPortError'. qtserialport-everywhere-src-5.15.17/examples/serialport/cwriterasync/serialportwriter.cpp:90:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteError [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/cwritersync/main.cpp:63:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/master/dialog.cpp:109:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/cwriterasync/serialportwriter.cpp:88:65: style:inconclusive: Function 'handleError' argument 1 names different: declaration 'error' definition 'serialPortError'. [funcArgNamesDifferent] qtserialport-everywhere-src-5.15.17/examples/serialport/cwriterasync/serialportwriter.h:75:51: note: Function 'handleError' argument 1 names different: declaration 'error' definition 'serialPortError'. qtserialport-everywhere-src-5.15.17/examples/serialport/cwriterasync/serialportwriter.cpp:88:65: note: Function 'handleError' argument 1 names different: declaration 'error' definition 'serialPortError'. qtserialport-everywhere-src-5.15.17/examples/serialport/slave/dialog.cpp:101:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable currentIndexChanged [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/slave/dialog.cpp:114:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/terminal/console.cpp:61:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable black [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/slave/slavethread.cpp:106:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/slave/slavethread.h:63:5: style: Class 'SlaveThread' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qtserialport-everywhere-src-5.15.17/examples/serialport/slave/slavethread.cpp:124:25: style: Local variable 'request' shadows outer function [shadowFunction] qtserialport-everywhere-src-5.15.17/examples/serialport/slave/slavethread.h:70:10: note: Shadowed declaration qtserialport-everywhere-src-5.15.17/examples/serialport/slave/slavethread.cpp:124:25: note: Shadow variable qtserialport-everywhere-src-5.15.17/examples/serialport/terminal/mainwindow.cpp:111:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/terminal/mainwindow.cpp:167:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ResourceError [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/src/serialport/qserialport.h:63:0: error: failed to evaluate #if condition, undefined function-like macro invocation: QT_DEPRECATED_SINCE( ... ) [syntaxError] qtserialport-everywhere-src-5.15.17/examples/serialport/terminal/mainwindow.cpp:178:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable close [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/terminal/settingsdialog.cpp:68:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoInsert [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/terminal/settingsdialog.cpp:136:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Baud9600 [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/examples/serialport/terminal/settingsdialog.h:91:14: performance: Function 'settings()' should return member 'm_currentSettings' by const reference. [returnByReference] qtserialport-everywhere-src-5.15.17/examples/serialport/terminal/settingsdialog.cpp:168:13: style: The scope of the variable 'description' can be reduced. [variableScope] qtserialport-everywhere-src-5.15.17/examples/serialport/terminal/settingsdialog.cpp:169:13: style: The scope of the variable 'manufacturer' can be reduced. [variableScope] qtserialport-everywhere-src-5.15.17/examples/serialport/terminal/settingsdialog.cpp:170:13: style: The scope of the variable 'serialNumber' can be reduced. [variableScope] qtserialport-everywhere-src-5.15.17/src/serialport/qserialportinfo.h:81:0: error: failed to evaluate #if condition, undefined function-like macro invocation: QT_DEPRECATED_SINCE( ... ) [syntaxError] qtserialport-everywhere-src-5.15.17/tests/auto/qserialportinfoprivate/tst_qserialportinfoprivate.cpp:92:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable source [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier_p.h:68:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d_ptr [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier.cpp:118:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d_ptr [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier.cpp:198:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier.cpp:209:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier.cpp:263:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier.cpp:281:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier.cpp:321:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier.cpp:397:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier.cpp:414:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WAIT_OBJECT_0 [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier.cpp:443:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier_p.h:72:5: style: Class 'QWinOverlappedIoNotifier' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier.cpp:104:5: style: Struct 'IOResult' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier.cpp:338:5: style: Class 'QScopedAtomicIntIncrementor' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] qtserialport-everywhere-src-5.15.17/src/serialport/qwinoverlappedionotifier.cpp:381:21: style: Variable 'triggeredOverlapped' can be declared as pointer to const [constVariablePointer] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:188:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoError [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:257:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NotOpen [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:275:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errorOccurred [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:294:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DeviceNotFoundError [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:305:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable serialPortName [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:322:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Baud1200 [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:341:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable baudrate [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:358:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Data5 [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:371:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable databits [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:388:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoParity [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:404:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:419:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OneStop [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:433:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stopbits [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:450:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoFlowControl [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:462:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flowcontrol [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:480:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errorOccurred [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:519:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errorOccurred [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:556:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:619:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:654:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:679:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:693:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:708:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:726:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:745:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:783:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:834:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:857:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QueuedConnection [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:869:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:891:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:917:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QueuedConnection [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:929:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:969:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:988:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:1015:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:1063:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:1112:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:1138:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable finished [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:1174:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:1207:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] qtserialport-everywhere-src-5.15.17/tests/auto/qserialport/tst_qserialport.cpp:1241:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable senderBaudRate [valueFlowBailoutIncompleteVar] diff: head qtserialport-everywhere-src-5.15.17/src/serialport/qserialport.h:63:0: error: failed to evaluate #if condition, undefined function-like macro invocation: QT_DEPRECATED_SINCE( ... ) [syntaxError] 2.18.0 qtserialport-everywhere-src-5.15.17/src/serialport/qserialport_p.h:98:0: error: #error Unsupported OS [preprocessorErrorDirective] 2.18.0 qtserialport-everywhere-src-5.15.17/src/serialport/qserialport_p.h:98:4: error: #error Unsupported OS [preprocessorErrorDirective] head qtserialport-everywhere-src-5.15.17/src/serialport/qserialportinfo.h:81:0: error: failed to evaluate #if condition, undefined function-like macro invocation: QT_DEPRECATED_SINCE( ... ) [syntaxError] DONE