2025-12-23 23:28 ftp://ftp.de.debian.org/debian/pool/main/r/rebar/rebar_2.6.4.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --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-90-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.19.0 head-info: b66f900 (2025-12-21 20:49:38 +0100) count: 9 9 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: rebar-2.6.4/inttest/port2/c_src/test1.c:4:2: error: #error TEST1 is not defined! [preprocessorErrorDirective] rebar-2.6.4/priv/templates/basicnif.c:7:0: debug: Failed to parse 'typedef struct Unnamed0 { { module } } _handle ;'. The checking continues anyway. [simplifyTypedef] rebar-2.6.4/priv/templates/basicnif.c:21:31: portability: Omitted return type of function '_new' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rebar-2.6.4/priv/templates/basicnif.c:32:31: portability: Omitted return type of function '_myfunction' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rebar-2.6.4/priv/templates/basicnif.c:38:23: portability: Omitted return type of function '_resource_cleanup' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rebar-2.6.4/priv/templates/basicnif.c:24:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable module [valueFlowBailoutIncompleteVar] rebar-2.6.4/priv/templates/basicnif.c:46:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERL_NIF_RT_CREATE [valueFlowBailoutIncompleteVar] rebar-2.6.4/priv/templates/basicnif.c:38:52: style: Parameter 'env' can be declared as pointer to const. However it seems that '_resource_cleanup' is a callback function, if 'env' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rebar-2.6.4/priv/templates/basicnif.c:49:65: note: You might need to cast the function pointer here rebar-2.6.4/priv/templates/basicnif.c:38:52: note: Parameter 'env' can be declared as pointer to const rebar-2.6.4/priv/templates/basicnif.c:38:63: style: Parameter 'arg' can be declared as pointer to const. However it seems that '_resource_cleanup' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rebar-2.6.4/priv/templates/basicnif.c:49:65: note: You might need to cast the function pointer here rebar-2.6.4/priv/templates/basicnif.c:38:63: note: Parameter 'arg' can be declared as pointer to const diff: DONE