2024-04-24 20:45 ftp://ftp.de.debian.org/debian/pool/main/g/gnome-themes-extra/gnome-themes-extra_3.28.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.5.0-28-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.57 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 cppcheck: head 2.14.0 head-info: 94f28a2 (2024-04-24 20:47:54 +0200) count: 15 15 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:90:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_LINE_CAP_SQUARE [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:129:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable adwaita_style_parent_class [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:150:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable adwaita_style_parent_class [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:118:22: style: Condition 'wm_is_fallback()' is always true [knownConditionTrueFalse] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:118:22: note: Calling function 'wm_is_fallback' returns 1 gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:118:22: note: Condition 'wm_is_fallback()' is always true gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:167:35: style: Parameter 'style' can be declared as pointer to const [constParameterPointer] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:181:51: style: Parameter 'klass' can be declared as pointer to const [constParameterPointer] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:208:44: style: Parameter 'rc_style' can be declared as pointer to const. However it seems that 'adwaita_rc_style_create_style' is a callback function, if 'rc_style' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:223:28: note: You might need to cast the function pointer here gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:208:44: note: Parameter 'rc_style' can be declared as pointer to const gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:214:40: style: Parameter 'rc_style' can be declared as pointer to const [constParameterPointer] gnome-themes-extra-3.28/themes/Adwaita/gtk-2.0/adwaita_engine.c:227:56: style: Parameter 'klass' can be declared as pointer to const [constParameterPointer] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:159:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MININT [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:196:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_CONTENT_COLOR [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:278:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:351:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TYPE_DIRECTORY [valueFlowBailoutIncompleteVar] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:134:3: error: Memory leak: data [memleak] gnome-themes-extra-3.28/themes/HighContrast/create-highcontrast.c:22:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] diff: DONE