2025-09-17 21:30 ftp://ftp.de.debian.org/debian/pool/main/c/caja-rename/caja-rename_25.1.1.orig.tar.gz 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-83-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.18.0 head-info: 3e169d6 (2025-09-15 13:38:15 +0200) count: 3 32 elapsed-time: 0.1 0.3 head-timing-info: old-timing-info: head results: caja-rename-25.1.1/src/titlecase.h:25:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] caja-rename-25.1.1/src/titlecase.h:25:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] caja-rename-25.1.1/src/rename.c:30:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] diff: 2.18.0 caja-rename-25.1.1/src/caja-rename.c:174:56: style: Parameter 'sText' can be declared as pointer to const. However it seems that 'onInsertText' is a callback function, if 'sText' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caja-rename-25.1.1/src/caja-rename.c:398:66: note: You might need to cast the function pointer here caja-rename-25.1.1/src/caja-rename.c:174:56: note: Parameter 'sText' can be declared as pointer to const 2.18.0 caja-rename-25.1.1/src/caja-rename.c:243:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 caja-rename-25.1.1/src/caja-rename.c:267:24: style: Variable 'pPath' can be declared as pointer to const [constVariablePointer] 2.18.0 caja-rename-25.1.1/src/caja-rename.c:441:13: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/caja-rename.c:445:20: style: Variable 'pIcon' can be declared as pointer to const [constVariablePointer] 2.18.0 caja-rename-25.1.1/src/caja-rename.c:456:17: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/caja-rename.c:496:41: style: Parameter 'self' can be declared as pointer to const. However it seems that 'onInstanceInit' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caja-rename-25.1.1/src/caja-rename.c:511:197: note: You might need to cast the function pointer here caja-rename-25.1.1/src/caja-rename.c:496:41: note: Parameter 'self' can be declared as pointer to const 2.18.0 caja-rename-25.1.1/src/caja-rename.c:500:43: style: Parameter 'klass' can be declared as pointer to const. However it seems that 'onClassInit' is a callback function, if 'klass' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caja-rename-25.1.1/src/caja-rename.c:511:128: note: You might need to cast the function pointer here caja-rename-25.1.1/src/caja-rename.c:500:43: note: Parameter 'klass' can be declared as pointer to const 2.18.0 caja-rename-25.1.1/src/caja-rename.c:513:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] 2.18.0 caja-rename-25.1.1/src/titlecase.h:101:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:109:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:117:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:125:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:133:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:141:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:149:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:157:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:165:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:173:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:216:23: style: Variable 'pFound' can be declared as pointer to const [constVariablePointer] 2.18.0 caja-rename-25.1.1/src/titlecase.h:246:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_MATCH_DEFAULT [valueFlowBailoutIncompleteVar] head caja-rename-25.1.1/src/titlecase.h:25:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head caja-rename-25.1.1/src/titlecase.h:25:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 caja-rename-25.1.1/src/titlecase.h:287:20: style: Variable 'sSlash' can be declared as pointer to const [constVariablePointer] 2.18.0 caja-rename-25.1.1/src/titlecase.h:288:20: style: Variable 'sDoubleSlash' can be declared as pointer to const [constVariablePointer] 2.18.0 caja-rename-25.1.1/src/titlecase.h:312:20: style: Variable 'sHyphen' can be declared as pointer to const [constVariablePointer] 2.18.0 caja-rename-25.1.1/src/titlecase.h:355:21: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:385:21: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:403:21: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:422:17: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 caja-rename-25.1.1/src/titlecase.h:57:12: style: Variable 'sRest' can be declared as pointer to const [constVariablePointer] 2.18.0 caja-rename-25.1.1/src/titlecase.h:73:12: style: Variable 'sRest' can be declared as pointer to const [constVariablePointer] 2.18.0 caja-rename-25.1.1/src/titlecase.h:93:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] DONE