2025-08-31 08:34 ftp://ftp.de.debian.org/debian/pool/main/g/gtkspell3/gtkspell3_3.0.10.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-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: 2ee39fe (2025-08-30 22:07:31 +0200) count: 16 35 elapsed-time: 0.2 0.5 head-timing-info: old-timing-info: head results: gtkspell3-3.0.10/examples/advanced.c:71:0: error: #error Unsupported GTK version [preprocessorErrorDirective] gtkspell3-3.0.10/examples/advanced.c:71:4: error: #error Unsupported GTK version [preprocessorErrorDirective] gtkspell3-3.0.10/examples/simple-vala.c:138:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_IN [valueFlowBailoutIncompleteVar] gtkspell3-3.0.10/examples/simple-vala.c:202:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable constructor [valueFlowBailoutIncompleteVar] gtkspell3-3.0.10/examples/simple-vala.c:159:2: style: Label '__catch0_g_error' is not used. [unusedLabel] gtkspell3-3.0.10/examples/simple-vala.c:244:47: style: Parameter '_sender' can be declared as pointer to const. However it seems that '_gtk_main_quit_gtk_widget_destroy' is a callback function, if '_sender' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkspell3-3.0.10/examples/simple-vala.c:263:2: note: You might need to cast the function pointer here gtkspell3-3.0.10/examples/simple-vala.c:244:47: note: Parameter '_sender' can be declared as pointer to const gtkspell3-3.0.10/examples/simple-vala.c:245:45: style: Parameter 'self' can be declared as pointer to const. However it seems that '_gtk_main_quit_gtk_widget_destroy' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkspell3-3.0.10/examples/simple-vala.c:263:2: note: You might need to cast the function pointer here gtkspell3-3.0.10/examples/simple-vala.c:245:45: note: Parameter 'self' can be declared as pointer to const gtkspell3-3.0.10/examples/simple.c:41:0: error: #error Unsupported GTK version [preprocessorErrorDirective] gtkspell3-3.0.10/examples/simple.c:41:4: error: #error Unsupported GTK version [preprocessorErrorDirective] gtkspell3-3.0.10/gtkspell/gtkspell-codetable.c:106:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ISO_CODES_PREFIX [valueFlowBailoutIncompleteVar] gtkspell3-3.0.10/gtkspell/gtkspell-win32.c:33:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DLL_PROCESS_ATTACH [valueFlowBailoutIncompleteVar] gtkspell3-3.0.10/gtkspell/gtkspell-win32.c:48:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] gtkspell3-3.0.10/gtkspell/gtkspell-win32.c:75:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] gtkspell3-3.0.10/gtkspell/gtkspell-win32.c:50:19: style: Variable 'temp_dir' is assigned a value that is never used. [unreadVariable] gtkspell3-3.0.10/gtkspell/gtkspell.c:472:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] gtkspell3-3.0.10/gtkspell/gtkspell.c:472:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:1009:20: style: Variable 'attached' can be declared as pointer to const [constVariablePointer] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:1056:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:146:19: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:314:36: style: Parameter 'buffer' can be declared as pointer to const. However it seems that 'delete_range_after' is a callback function, if 'buffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkspell3-3.0.10/gtkspell/gtkspell.c:774:7: note: You might need to cast the function pointer here gtkspell3-3.0.10/gtkspell/gtkspell.c:314:36: note: Parameter 'buffer' can be declared as pointer to const 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:326:24: style: Parameter 'mark' can be declared as pointer to const. However it seems that 'mark_set' is a callback function, if 'mark' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkspell3-3.0.10/gtkspell/gtkspell.c:776:7: note: You might need to cast the function pointer here gtkspell3-3.0.10/gtkspell/gtkspell.c:326:24: note: Parameter 'mark' can be declared as pointer to const 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:432:18: style: Local variable 'label' shadows outer variable [shadowVariable] gtkspell3-3.0.10/gtkspell/gtkspell.c:420:9: note: Shadowed declaration gtkspell3-3.0.10/gtkspell/gtkspell.c:432:18: note: Shadow variable 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:434:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] head gtkspell3-3.0.10/gtkspell/gtkspell.c:472:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head gtkspell3-3.0.10/gtkspell/gtkspell.c:472:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:588:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:610:30: style: Parameter 'textview' can be declared as pointer to const. However it seems that 'populate_popup' is a callback function, if 'textview' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkspell3-3.0.10/gtkspell/gtkspell.c:1024:3: note: You might need to cast the function pointer here gtkspell3-3.0.10/gtkspell/gtkspell.c:610:30: note: Parameter 'textview' can be declared as pointer to const 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:624:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:661:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TEXT_WINDOW_TEXT [valueFlowBailoutIncompleteVar] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:674:32: style: Parameter 'view' can be declared as pointer to const. However it seems that 'popup_menu_event' is a callback function, if 'view' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkspell3-3.0.10/gtkspell/gtkspell.c:1026:3: note: You might need to cast the function pointer here gtkspell3-3.0.10/gtkspell/gtkspell.c:674:32: note: Parameter 'view' can be declared as pointer to const 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:724:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:746:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:823:45: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gtk_spell_checker_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkspell3-3.0.10/gtkspell/gtkspell.c:864:32: note: You might need to cast the function pointer here gtkspell3-3.0.10/gtkspell/gtkspell.c:823:45: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:842:45: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'gtk_spell_checker_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkspell3-3.0.10/gtkspell/gtkspell.c:865:32: note: You might need to cast the function pointer here gtkspell3-3.0.10/gtkspell/gtkspell.c:842:45: note: Parameter 'pspec' can be declared as pointer to const 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:844:20: style: Variable 'spell' can be declared as pointer to const [constVariablePointer] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:860:3: style: g_type_class_add_private has been deprecated since version 2.58 and should not be used in newly-written code. Use the G_ADD_PRIVATE() macro with the G_DEFINE_* family of macros to add instance private data to a type. [prohibitedg_type_class_add_privateCalled] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:878:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_RUN_LAST [valueFlowBailoutIncompleteVar] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:943:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gtk_spell_checker_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 gtkspell3-3.0.10/gtkspell/gtkspell.c:972:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gtk_spell_checker_parent_class [valueFlowBailoutIncompleteVar] DONE