2026-05-27 16:51 ftp://ftp.de.debian.org/debian/pool/main/l/lomiri-messaging-app/lomiri-messaging-app_2.0.1.orig.tar.bz2 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 -j8 platform: Linux-6.17.0-29-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: 6e46c6b (2026-05-27 18:39:55 +0200) count: 53 42 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: lomiri-messaging-app-2.0.1/src/fileoperations.cpp:41:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CacheLocation [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/src/fileoperations.h:32:5: style: Class 'FileOperations' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] lomiri-messaging-app-2.0.1/src/fileoperations.cpp:43:22: style: Error code from the return value of function dataLocation.mkpath() is not used. [ignoredReturnErrorCode] lomiri-messaging-app-2.0.1/tests/qml/tst_QmlTests.cpp:56:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Dirs [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:34:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable State [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:121:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RecordingState [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:126:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable StoppedState [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:131:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PausedState [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:142:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CacheLocation [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/tests/qml/tst_QmlTests.cpp:46:13: style: Error code from the return value of function dir.mkpath() is not used. [ignoredReturnErrorCode] lomiri-messaging-app-2.0.1/src/audiorecorder.h:88:5: style: Class 'AudioRecorder' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:216:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Dirs [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:231:63: style:inconclusive: Function 'updateRecorderError' argument 1 names different: declaration '' definition 'errorCode'. [funcArgNamesDifferentUnnamed] lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:237:54: style:inconclusive: Function 'updateActualLocation' argument 1 names different: declaration '' definition 'url'. [funcArgNamesDifferentUnnamed] lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:231:63: style: Argument 'errorCode' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/audiorecorder.h:93:11: note: Shadowed function lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:231:63: note: Shadow argument lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:45:5: performance: Variable 'm_database' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:166:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Status [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:238:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Ready [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:197:24: style:inconclusive: Either there is a missing 'override', or the member function 'StickersPackModel::getEntryIndex' can be const. [functionConst] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:89:9: note: Either there is a missing 'override', or the member function 'StickersPackModel::getEntryIndex' can be const. lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:197:24: note: Either there is a missing 'override', or the member function 'StickersPackModel::getEntryIndex' can be const. lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:277:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FullyDecoded [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:312:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/src/stickers-history-model.h:41:5: style: Class 'StickersHistoryModel' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:331:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOTIFY_URGENCY_LOW [valueFlowBailoutIncompleteVar] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:30:13: performance: Function 'name()' should return member 'm_name' by const reference. [returnByReference] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:31:13: performance: Function 'path()' should return member 'm_path' by const reference. [returnByReference] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:34:13: performance: Function 'thumbnail()' should return member 'm_thumbnail' by const reference. [returnByReference] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:66:19: performance: Function 'stickerPath()' should return member 'm_stickerPath' by const reference. [returnByReference] lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:61:16: style: Error code from the return value of function m_database.open() is not used. [ignoredReturnErrorCode] lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:73:11: style: Error code from the return value of function query.prepare() is not used. [ignoredReturnErrorCode] lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:84:11: style: Error code from the return value of function query.prepare() is not used. [ignoredReturnErrorCode] lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:237:11: style: Error code from the return value of function query.prepare() is not used. [ignoredReturnErrorCode] lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:252:11: style: Error code from the return value of function query.prepare() is not used. [ignoredReturnErrorCode] lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:277:11: style: Error code from the return value of function query.prepare() is not used. [ignoredReturnErrorCode] lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:300:11: style: Error code from the return value of function query.prepare() is not used. [ignoredReturnErrorCode] lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:93:16: style: Error code from the return value of function newDir.mkpath() is not used. [ignoredReturnErrorCode] lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:117:30: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:311:30: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:115:28: style: The scope of the variable 'roles' can be reduced. [variableScope] lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:309:28: style: The scope of the variable 'roles' can be reduced. [variableScope] lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:112:40: style:inconclusive: Function 'get' argument 1 names different: declaration 'index' definition 'i'. [funcArgNamesDifferent] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:73:37: note: Function 'get' argument 1 names different: declaration 'index' definition 'i'. lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:112:40: note: Function 'get' argument 1 names different: declaration 'index' definition 'i'. lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:47:32: style: Argument 'count' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:32:9: note: Shadowed function lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:47:32: note: Shadow argument lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:306:43: style:inconclusive: Function 'get' argument 1 names different: declaration 'index' definition 'i'. [funcArgNamesDifferent] lomiri-messaging-app-2.0.1/src/stickers-history-model.h:62:37: note: Function 'get' argument 1 names different: declaration 'index' definition 'i'. lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:306:43: note: Function 'get' argument 1 names different: declaration 'index' definition 'i'. lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:58:40: style: Argument 'thumbnail' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:34:13: note: Shadowed function lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:58:40: note: Shadow argument lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:150:76: style: Argument 'stickerPath' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:66:19: note: Shadowed function lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:150:76: note: Shadow argument lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:143:41: style: Argument 'limit' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/stickers-history-model.h:56:9: note: Shadowed function lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:143:41: note: Shadow argument lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:175:79: style: Argument 'stickerPath' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:66:19: note: Shadowed function lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:175:79: note: Shadow argument lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:58:40: performance: Function parameter 'thumbnail' should be passed by const reference. [passedByValue] lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:96:5: performance: Variable 'mValidSchemes' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:320:31: style:inconclusive: Either there is a missing 'override', or the member function 'MessagingApplication::fileMimeType' can be const. [functionConst] lomiri-messaging-app-2.0.1/src/messagingapplication.h:50:13: note: Either there is a missing 'override', or the member function 'MessagingApplication::fileMimeType' can be const. lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:320:31: note: Either there is a missing 'override', or the member function 'MessagingApplication::fileMimeType' can be const. lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:230:42: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:184:18: style: Error code from the return value of function dataLocation.mkpath() is not used. [ignoredReturnErrorCode] lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:131:42: style: C-style pointer casting [cstyleCast] lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:224:47: style: Argument 'fullscreen' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/messagingapplication.h:37:10: note: Shadowed function lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:224:47: note: Shadow argument diff: head lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:231:63: style: Argument 'errorCode' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/audiorecorder.h:93:11: note: Shadowed function lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:231:63: note: Shadow argument head lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:231:63: style:inconclusive: Function 'updateRecorderError' argument 1 names different: declaration '' definition 'errorCode'. [funcArgNamesDifferentUnnamed] head lomiri-messaging-app-2.0.1/src/audiorecorder.cpp:237:54: style:inconclusive: Function 'updateActualLocation' argument 1 names different: declaration '' definition 'url'. [funcArgNamesDifferentUnnamed] head lomiri-messaging-app-2.0.1/src/fileoperations.cpp:43:22: style: Error code from the return value of function dataLocation.mkpath() is not used. [ignoredReturnErrorCode] head lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:184:18: style: Error code from the return value of function dataLocation.mkpath() is not used. [ignoredReturnErrorCode] head lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:224:47: style: Argument 'fullscreen' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/messagingapplication.h:37:10: note: Shadowed function lomiri-messaging-app-2.0.1/src/messagingapplication.cpp:224:47: note: Shadow argument head lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:143:41: style: Argument 'limit' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/stickers-history-model.h:56:9: note: Shadowed function lomiri-messaging-app-2.0.1/src/stickers-history-model.cpp:143:41: note: Shadow argument head lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:150:76: style: Argument 'stickerPath' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:66:19: note: Shadowed function lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:150:76: note: Shadow argument head lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:175:79: style: Argument 'stickerPath' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:66:19: note: Shadowed function lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:175:79: note: Shadow argument head lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:47:32: style: Argument 'count' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:32:9: note: Shadowed function lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:47:32: note: Shadow argument head lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:58:40: style: Argument 'thumbnail' shadows outer function [shadowFunction] lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:34:13: note: Shadowed function lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:58:40: note: Shadow argument head lomiri-messaging-app-2.0.1/src/stickers-pack-model.cpp:93:16: style: Error code from the return value of function newDir.mkpath() is not used. [ignoredReturnErrorCode] 2.20.0 lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:80:36: performance: Function parameter 'packName' should be passed by const reference. [passedByValue] 2.20.0 lomiri-messaging-app-2.0.1/src/stickers-pack-model.h:81:36: performance: Function parameter 'packName' should be passed by const reference. [passedByValue] head lomiri-messaging-app-2.0.1/tests/qml/tst_QmlTests.cpp:46:13: style: Error code from the return value of function dir.mkpath() is not used. [ignoredReturnErrorCode] DONE