2026-03-13 18:17 ftp://ftp.de.debian.org/debian/pool/main/b/brotli/brotli_1.2.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --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-100-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: 7d80f64 (2026-03-13 11:20:53 +0100) count: 19 19 elapsed-time: 0.4 0.4 head-timing-info: old-timing-info: head results: google-brotli-028fb5a/c/common/platform.h:34:2: error: failed to evaluate #if condition, undefined function-like macro invocation: BROTLI_MSVC_VERSION_CHECK( ... ) [syntaxError] google-brotli-028fb5a/python/_brotli.c:242:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyBUF_SIMPLE [valueFlowBailoutIncompleteVar] google-brotli-028fb5a/python/_brotli.c:405:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BROTLI_DEFAULT_MODE [valueFlowBailoutIncompleteVar] google-brotli-028fb5a/python/_brotli.c:475:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BROTLI_FALSE [valueFlowBailoutIncompleteVar] google-brotli-028fb5a/python/_brotli.c:551:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BROTLI_OPERATION_PROCESS [valueFlowBailoutIncompleteVar] google-brotli-028fb5a/python/_brotli.c:670:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BROTLI_DECODER_RESULT_ERROR [valueFlowBailoutIncompleteVar] google-brotli-028fb5a/python/_brotli.c:795:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_True [valueFlowBailoutIncompleteVar] google-brotli-028fb5a/python/_brotli.c:813:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_False [valueFlowBailoutIncompleteVar] google-brotli-028fb5a/python/_brotli.c:826:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BROTLI_DECODER_RESULT_ERROR [valueFlowBailoutIncompleteVar] google-brotli-028fb5a/python/_brotli.c:1075:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable brotli_doc [valueFlowBailoutIncompleteVar] google-brotli-028fb5a/python/_brotli.c:1138:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BROTLI_MODE_GENERIC [valueFlowBailoutIncompleteVar] google-brotli-028fb5a/python/_brotli.c:1122:23: style: Condition 'compressor_type==NULL' is always false [knownConditionTrueFalse] google-brotli-028fb5a/python/_brotli.c:1144:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] google-brotli-028fb5a/python/_brotli.c:1144:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] google-brotli-028fb5a/python/_brotli.c:1144:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] google-brotli-028fb5a/python/_brotli.c:343:10: style: Variable 'block' can be declared as pointer to const [constVariablePointer] google-brotli-028fb5a/python/_brotli.c:467:70: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] google-brotli-028fb5a/python/_brotli.c:633:76: style: Parameter 'args' can be declared as pointer to const. However it seems that 'brotli_Decompressor_init' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] google-brotli-028fb5a/python/_brotli.c:1069:15: note: You might need to cast the function pointer here google-brotli-028fb5a/python/_brotli.c:633:76: note: Parameter 'args' can be declared as pointer to const google-brotli-028fb5a/python/_brotli.c:634:47: style: Parameter 'keywds' can be declared as pointer to const. However it seems that 'brotli_Decompressor_init' is a callback function, if 'keywds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] google-brotli-028fb5a/python/_brotli.c:1069:15: note: You might need to cast the function pointer here google-brotli-028fb5a/python/_brotli.c:634:47: note: Parameter 'keywds' can be declared as pointer to const diff: DONE