2026-05-02 18:20 ftp://ftp.de.debian.org/debian/pool/main/j/jsonrpc-glib/jsonrpc-glib_3.44.2.orig.tar.xz 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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 33 33 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: jsonrpc-glib-3.44.2/src/jsonrpc-version-macros.h:24:3: error: #error "Only can be included directly." [preprocessorErrorDirective] jsonrpc-glib-3.44.2/tests/test-gauntlet.c:51:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-gauntlet.c:74:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JsonrpcClient [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-gauntlet.c:32:36: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'server_handle_call' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jsonrpc-glib-3.44.2/tests/test-gauntlet.c:111:3: note: You might need to cast the function pointer here jsonrpc-glib-3.44.2/tests/test-gauntlet.c:32:36: note: Parameter 'user_data' can be declared as pointer to const jsonrpc-glib-3.44.2/tests/test-message.c:8:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:53:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:78:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:101:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:117:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:146:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:162:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:183:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:216:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:227:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:256:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:278:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:311:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-message.c:329:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-server.c:58:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-server.c:93:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-server.c:112:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JsonrpcServer [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-server.c:36:37: style: Parameter 'params' can be declared as pointer to const. However it seems that 'handle_notification' is a callback function, if 'params' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jsonrpc-glib-3.44.2/tests/test-server.c:162:3: note: You might need to cast the function pointer here jsonrpc-glib-3.44.2/tests/test-server.c:36:37: note: Parameter 'params' can be declared as pointer to const jsonrpc-glib-3.44.2/tests/test-stress.c:39:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GInputStream [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-stress.c:54:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_REMOVE [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-stress.c:62:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JsonrpcServer [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-stress.c:135:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-stress.c:162:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GVariant [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-stress.c:186:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JsonrpcClient [valueFlowBailoutIncompleteVar] jsonrpc-glib-3.44.2/tests/test-stress.c:205:3: warning: Assert statement calls a function which may have desired side effects: 'pipe'. [assertWithSideEffect] jsonrpc-glib-3.44.2/tests/test-stress.c:206:3: warning: Assert statement calls a function which may have desired side effects: 'pipe'. [assertWithSideEffect] jsonrpc-glib-3.44.2/tests/test-stress.c:122:40: style: Parameter 'server' can be declared as pointer to const. However it seems that 'server_notification_cb' is a callback function, if 'server' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jsonrpc-glib-3.44.2/tests/test-stress.c:219:3: note: You might need to cast the function pointer here jsonrpc-glib-3.44.2/tests/test-stress.c:122:40: note: Parameter 'server' can be declared as pointer to const jsonrpc-glib-3.44.2/tests/test-stress.c:123:40: style: Parameter 'client' can be declared as pointer to const. However it seems that 'server_notification_cb' is a callback function, if 'client' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jsonrpc-glib-3.44.2/tests/test-stress.c:219:3: note: You might need to cast the function pointer here jsonrpc-glib-3.44.2/tests/test-stress.c:123:40: note: Parameter 'client' can be declared as pointer to const jsonrpc-glib-3.44.2/tests/test-stress.c:125:40: style: Parameter 'params' can be declared as pointer to const. However it seems that 'server_notification_cb' is a callback function, if 'params' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jsonrpc-glib-3.44.2/tests/test-stress.c:219:3: note: You might need to cast the function pointer here jsonrpc-glib-3.44.2/tests/test-stress.c:125:40: note: Parameter 'params' can be declared as pointer to const diff: DONE