2025-08-31 03:33 ftp://ftp.de.debian.org/debian/pool/main/g/gmobile/gmobile_0.4.0.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 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 43 43 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: gmobile-0.4.0/debian/tests/test.c:6:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GmDeviceInfo [valueFlowBailoutIncompleteVar] gmobile-0.4.0/examples/gm-timeout.c:21:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GM_VERSION [valueFlowBailoutIncompleteVar] gmobile-0.4.0/examples/gm-timeout.c:29:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDateTime [valueFlowBailoutIncompleteVar] gmobile-0.4.0/examples/gm-timeout.c:50:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GOptionContext [valueFlowBailoutIncompleteVar] gmobile-0.4.0/examples/gm-display-panel-preview.c:18:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GM_VERSION [valueFlowBailoutIncompleteVar] gmobile-0.4.0/examples/gm-display-panel-preview.c:61:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GmCutout [valueFlowBailoutIncompleteVar] gmobile-0.4.0/examples/gm-display-panel-preview.c:98:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gmobile-0.4.0/examples/gm-display-panel-preview.c:119:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GOptionContext [valueFlowBailoutIncompleteVar] gmobile-0.4.0/examples/gm-display-panel-run-phosh.c:31:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GM_VERSION [valueFlowBailoutIncompleteVar] gmobile-0.4.0/examples/gm-display-panel-run-phosh.c:39:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gmobile-0.4.0/examples/gm-display-panel-run-phosh.c:55:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gmobile-0.4.0/examples/gm-display-panel-run-phosh.c:122:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GOptionContext [valueFlowBailoutIncompleteVar] gmobile-0.4.0/src/gm-rect.h:14:0: error: #error "Only can be included directly." [preprocessorErrorDirective] gmobile-0.4.0/src/gm-rect.h:14:2: error: #error "Only can be included directly." [preprocessorErrorDirective] gmobile-0.4.0/src/gm-device-tree.h:12:0: error: #error "Only can be included directly." [preprocessorErrorDirective] gmobile-0.4.0/src/gm-device-tree.h:12:2: error: #error "Only can be included directly." [preprocessorErrorDirective] gmobile-0.4.0/src/gm-device-info.c:94:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gm_device_info_parent_class [valueFlowBailoutIncompleteVar] gmobile-0.4.0/src/gm-device-info.c:117:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] gmobile-0.4.0/src/gm-device-info.c:169:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gmobile-0.4.0/src/gm-device-info.c:51:44: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gm_device_info_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmobile-0.4.0/src/gm-device-info.c:104:32: note: You might need to cast the function pointer here gmobile-0.4.0/src/gm-device-info.c:51:44: note: Parameter 'pspec' can be declared as pointer to const gmobile-0.4.0/src/gm-device-info.c:71:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gm_device_info_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmobile-0.4.0/src/gm-device-info.c:103:32: note: You might need to cast the function pointer here gmobile-0.4.0/src/gm-device-info.c:71:42: note: Parameter 'pspec' can be declared as pointer to const gmobile-0.4.0/src/gm-device-info.c:124:36: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] gmobile-0.4.0/src/gm-main.h:12:0: error: #error "Only can be included directly." [preprocessorErrorDirective] gmobile-0.4.0/src/gm-main.h:12:2: error: #error "Only can be included directly." [preprocessorErrorDirective] gmobile-0.4.0/src/gm-mcc-mnc.c:284:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gmobile-0.4.0/src/gm-timeout.h:12:0: error: #error "Only can be included directly." [preprocessorErrorDirective] gmobile-0.4.0/src/gm-timeout.h:12:2: error: #error "Only can be included directly." [preprocessorErrorDirective] gmobile-0.4.0/src/gm-mcc-mnc.c:288:79: warning: Either the condition '!mcc' is redundant or there is possible null pointer dereference: mcc. [nullPointerRedundantCheck] gmobile-0.4.0/src/gm-mcc-mnc.c:287:7: note: Assuming that condition '!mcc' is not redundant gmobile-0.4.0/src/gm-mcc-mnc.c:288:79: note: Null pointer dereference gmobile-0.4.0/src/gm-util.h:12:0: error: #error "Only can be included directly." [preprocessorErrorDirective] gmobile-0.4.0/src/gm-util.h:12:2: error: #error "Only can be included directly." [preprocessorErrorDirective] gmobile-0.4.0/tests/test-cutout.c:21:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gmobile-0.4.0/tests/test-device-tree.c:17:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GStrv [valueFlowBailoutIncompleteVar] gmobile-0.4.0/tests/test-mcc-mnc.c:18:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gmobile-0.4.0/tests/test-display-panel.c:31:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gmobile-0.4.0/tests/test-timeout.c:23:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GMainLoop [valueFlowBailoutIncompleteVar] gmobile-0.4.0/tests/test-timeout.c:44:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_REMOVE [valueFlowBailoutIncompleteVar] gmobile-0.4.0/tests/test-timeout.c:51:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GMainLoop [valueFlowBailoutIncompleteVar] gmobile-0.4.0/tests/test-timeout.c:40:26: style: Parameter 'data' can be declared as pointer to const. However it seems that 'remove_timeout' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmobile-0.4.0/tests/test-timeout.c:57:15: note: You might need to cast the function pointer here gmobile-0.4.0/tests/test-timeout.c:40:26: note: Parameter 'data' can be declared as pointer to const gmobile-0.4.0/tests/test-svg-path.c:24:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gmobile-0.4.0/tests/test-svg-path.c:47:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gmobile-0.4.0/tests/test-svg-path.c:68:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gmobile-0.4.0/tests/test-svg-path.c:92:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] gmobile-0.4.0/tests/test-utils.c:30:3: warning: Assert statement calls a function which may have desired side effects: 'g_strv_length'. [assertWithSideEffect] diff: DONE