2025-09-02 03:46 ftp://ftp.de.debian.org/debian/pool/main/n/notmuch-addrlookup/notmuch-addrlookup_10.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 2b51b48 (2025-09-01 15:35:55 +0200) count: 2 9 elapsed-time: 0.1 0.2 head-timing-info: old-timing-info: head results: notmuch-addrlookup-c-10/notmuch-addrlookup.c:177:0: error: failed to evaluate #if condition, undefined function-like macro invocation: LIBNOTMUCH_CHECK_VERSION( ... ) [preprocessorErrorDirective] notmuch-addrlookup-c-10/notmuch-addrlookup.c:177:2: error: failed to evaluate #if condition, undefined function-like macro invocation: LIBNOTMUCH_CHECK_VERSION( ... ) [preprocessorErrorDirective] diff: head notmuch-addrlookup-c-10/notmuch-addrlookup.c:177:0: error: failed to evaluate #if condition, undefined function-like macro invocation: LIBNOTMUCH_CHECK_VERSION( ... ) [preprocessorErrorDirective] head notmuch-addrlookup-c-10/notmuch-addrlookup.c:177:2: error: failed to evaluate #if condition, undefined function-like macro invocation: LIBNOTMUCH_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 notmuch-addrlookup-c-10/notmuch-addrlookup.c:210:45: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'print_contact_info' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] notmuch-addrlookup-c-10/notmuch-addrlookup.c:257:40: note: You might need to cast the function pointer here notmuch-addrlookup-c-10/notmuch-addrlookup.c:210:45: note: Parameter 'userdata' can be declared as pointer to const 2.18.0 notmuch-addrlookup-c-10/notmuch-addrlookup.c:212:16: style: Variable 'info' can be declared as pointer to const [constVariablePointer] 2.18.0 notmuch-addrlookup-c-10/notmuch-addrlookup.c:218:50: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'print_contact_info_mutt' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] notmuch-addrlookup-c-10/notmuch-addrlookup.c:259:37: note: You might need to cast the function pointer here notmuch-addrlookup-c-10/notmuch-addrlookup.c:218:50: note: Parameter 'userdata' can be declared as pointer to const 2.18.0 notmuch-addrlookup-c-10/notmuch-addrlookup.c:220:16: style: Variable 'info' can be declared as pointer to const [constVariablePointer] 2.18.0 notmuch-addrlookup-c-10/notmuch-addrlookup.c:229:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_OPTIMIZE [valueFlowBailoutIncompleteVar] 2.18.0 notmuch-addrlookup-c-10/notmuch-addrlookup.c:233:11: error: Allocation with g_regex_replace, g_print doesn't release it. [leakNoVarFunctionCall] 2.18.0 notmuch-addrlookup-c-10/notmuch-addrlookup.c:244:42: style: Parameter 'addrs' can be declared as pointer to const. However it seems that 'print_summary_mutt' is a callback function, if 'addrs' is declared with const you might also need to cast function pointer(s). [constParameterCallback] notmuch-addrlookup-c-10/notmuch-addrlookup.c:259:78: note: You might need to cast the function pointer here notmuch-addrlookup-c-10/notmuch-addrlookup.c:244:42: note: Parameter 'addrs' can be declared as pointer to const 2.18.0 notmuch-addrlookup-c-10/notmuch-addrlookup.c:278:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_OPTIMIZE [valueFlowBailoutIncompleteVar] 2.18.0 notmuch-addrlookup-c-10/notmuch-addrlookup.c:374:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] DONE