2026-05-03 08:33 ftp://ftp.de.debian.org/debian/pool/main/libt/libtimezonemap/libtimezonemap_0.4.6.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-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: 75 75 elapsed-time: 0.5 0.4 head-timing-info: old-timing-info: head results: libtimezonemap-0.4.6/src/cc-timezone-location.c:65:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-location.c:142:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-location.c:186:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-location.c:207:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-location.c:194: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] libtimezonemap-0.4.6/src/cc-timezone-location.c:63:43: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'cc_timezone_location_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libtimezonemap-0.4.6/src/cc-timezone-location.c:196:32: note: You might need to cast the function pointer here libtimezonemap-0.4.6/src/cc-timezone-location.c:63:43: note: Parameter 'pspec' can be declared as pointer to const libtimezonemap-0.4.6/src/cc-timezone-location.c:65:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] libtimezonemap-0.4.6/src/cc-timezone-location.c:103:45: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'cc_timezone_location_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libtimezonemap-0.4.6/src/cc-timezone-location.c:197:32: note: You might need to cast the function pointer here libtimezonemap-0.4.6/src/cc-timezone-location.c:103:45: note: Parameter 'pspec' can be declared as pointer to const libtimezonemap-0.4.6/src/cc-timezone-location.c:186:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] libtimezonemap-0.4.6/src/cc-timezone-location.c:274:30: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] libtimezonemap-0.4.6/src/cc-timezone-location.c:186:35: style: Variable 'priv' is assigned a value that is never used. [unreadVariable] libtimezonemap-0.4.6/src/cc-timezone-location.c:275:8: style: Variable 'priv' is assigned a value that is never used. [unreadVariable] libtimezonemap-0.4.6/src/cc-timezone-map.c:506:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:555:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:587:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:604:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:630:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WINDOW_CHILD [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:666:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PI [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:677:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PI_4 [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:692:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:816:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:876:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:982:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNOMECC_DATA_DIR [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:1035:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:1142:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/cc-timezone-map.c:797: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] libtimezonemap-0.4.6/src/cc-timezone-map.c:473:43: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'cc_timezone_map_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libtimezonemap-0.4.6/src/cc-timezone-map.c:799:32: note: You might need to cast the function pointer here libtimezonemap-0.4.6/src/cc-timezone-map.c:473:43: note: Parameter 'pspec' can be declared as pointer to const libtimezonemap-0.4.6/src/cc-timezone-map.c:475:18: style: Variable 'map' can be declared as pointer to const [constVariablePointer] libtimezonemap-0.4.6/src/cc-timezone-map.c:490:45: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'cc_timezone_map_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libtimezonemap-0.4.6/src/cc-timezone-map.c:800:32: note: You might need to cast the function pointer here libtimezonemap-0.4.6/src/cc-timezone-map.c:490:45: note: Parameter 'pspec' can be declared as pointer to const libtimezonemap-0.4.6/src/cc-timezone-map.c:959:37: style: Parameter 'event' can be declared as pointer to const. However it seems that 'button_press_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libtimezonemap-0.4.6/src/cc-timezone-map.c:1062:3: note: You might need to cast the function pointer here libtimezonemap-0.4.6/src/cc-timezone-map.c:959:37: note: Parameter 'event' can be declared as pointer to const libtimezonemap-0.4.6/src/cc-timezone-map.c:1082:9: style: Variable 'real_tz' can be declared as pointer to const [constVariablePointer] libtimezonemap-0.4.6/src/cc-timezone-map.c:1146:28: style: Variable 'loc' can be declared as pointer to const [constVariablePointer] libtimezonemap-0.4.6/src/cc-timezone-map.c:735:44: error: Uninitialized variable: buf [uninitvar] libtimezonemap-0.4.6/src/cc-timezone-map.c:39:11: style: struct member 'CcTimezoneMapOffset::offset' is never used. [unusedStructMember] libtimezonemap-0.4.6/src/cc-timezone-map.c:40:10: style: struct member 'CcTimezoneMapOffset::red' is never used. [unusedStructMember] libtimezonemap-0.4.6/src/cc-timezone-map.c:41:10: style: struct member 'CcTimezoneMapOffset::green' is never used. [unusedStructMember] libtimezonemap-0.4.6/src/cc-timezone-map.c:42:10: style: struct member 'CcTimezoneMapOffset::blue' is never used. [unusedStructMember] libtimezonemap-0.4.6/src/cc-timezone-map.c:43:10: style: struct member 'CcTimezoneMapOffset::alpha' is never used. [unusedStructMember] libtimezonemap-0.4.6/src/cc-timezone-map.c:877:10: style: Unused variable: r [unusedVariable] libtimezonemap-0.4.6/src/cc-timezone-map.c:877:13: style: Unused variable: g [unusedVariable] libtimezonemap-0.4.6/src/cc-timezone-map.c:877:16: style: Unused variable: b [unusedVariable] libtimezonemap-0.4.6/src/cc-timezone-map.c:877:19: style: Unused variable: a [unusedVariable] libtimezonemap-0.4.6/src/cc-timezone-map.c:878:8: style: Unused variable: rowstride [unusedVariable] libtimezonemap-0.4.6/src/cc-timezone-map.c:1146:32: style: Variable 'loc' is assigned a value that is never used. [unreadVariable] libtimezonemap-0.4.6/src/test-timezone.c:14:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/test-timezone.c:49:62: error: Uninitialized variable: buf [uninitvar] libtimezonemap-0.4.6/src/timezone-completion.c:287:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOUP_STATUS_OK [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/timezone-completion.c:486:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_TREE_VIEW [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/timezone-completion.c:509:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_ISO_Enter [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/timezone-completion.c:707:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cc_timezone_completion_parent_class [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/timezone-completion.c:772:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cc_timezone_completion_parent_class [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/timezone-completion.c:358:10: error: Returning pointer to local variable 'stdout' that will be invalid when returning. [returnDanglingLifetime] libtimezonemap-0.4.6/src/timezone-completion.c:353:19: note: Passed to 'g_strchug'. libtimezonemap-0.4.6/src/timezone-completion.c:349:14: note: Variable created here. libtimezonemap-0.4.6/src/timezone-completion.c:358:10: note: Returning pointer to local variable 'stdout' that will be invalid when returning. libtimezonemap-0.4.6/src/timezone-completion.c:666: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] libtimezonemap-0.4.6/src/timezone-completion.c:230:44: error: Allocation with g_utf8_casefold, gtk_tree_sortable_set_sort_func doesn't release it. [leakNoVarFunctionCall] libtimezonemap-0.4.6/src/timezone-completion.c:63:33: style: Parameter 'completion' can be declared as pointer to const. However it seems that 'match_func' is a callback function, if 'completion' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libtimezonemap-0.4.6/src/timezone-completion.c:80:77: note: You might need to cast the function pointer here libtimezonemap-0.4.6/src/timezone-completion.c:63:33: note: Parameter 'completion' can be declared as pointer to const libtimezonemap-0.4.6/src/timezone-completion.c:64:26: style: Parameter 'iter' can be declared as pointer to const. However it seems that 'match_func' is a callback function, if 'iter' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libtimezonemap-0.4.6/src/timezone-completion.c:80:77: note: You might need to cast the function pointer here libtimezonemap-0.4.6/src/timezone-completion.c:64:26: note: Parameter 'iter' can be declared as pointer to const libtimezonemap-0.4.6/src/timezone-completion.c:64:41: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'match_func' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libtimezonemap-0.4.6/src/timezone-completion.c:80:77: note: You might need to cast the function pointer here libtimezonemap-0.4.6/src/timezone-completion.c:64:41: note: Parameter 'user_data' can be declared as pointer to const libtimezonemap-0.4.6/src/timezone-completion.c:96:21: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'sort_zone' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libtimezonemap-0.4.6/src/timezone-completion.c:229:44: note: You might need to cast the function pointer here libtimezonemap-0.4.6/src/timezone-completion.c:96:21: note: Parameter 'user_data' can be declared as pointer to const libtimezonemap-0.4.6/src/timezone-completion.c:388:11: style: Variable 'version' can be declared as pointer to const [constVariablePointer] libtimezonemap-0.4.6/src/timezone-completion.c:472:57: style: Parameter 'model' can be declared as pointer to const [constParameterPointer] libtimezonemap-0.4.6/src/timezone-completion.c:507:49: style: Parameter 'event' can be declared as pointer to const. However it seems that 'entry_keypress' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libtimezonemap-0.4.6/src/timezone-completion.c:567:12: note: You might need to cast the function pointer here libtimezonemap-0.4.6/src/timezone-completion.c:507:49: note: Parameter 'event' can be declared as pointer to const libtimezonemap-0.4.6/src/timezone-completion.c:594:28: style: Variable 'loc' can be declared as pointer to const [constVariablePointer] libtimezonemap-0.4.6/src/timezone-completion.c:648:11: style: Variable 'user_name' can be declared as pointer to const [constVariablePointer] libtimezonemap-0.4.6/src/tz.c:263:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PI [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/tz.c:274:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PI_4 [valueFlowBailoutIncompleteVar] libtimezonemap-0.4.6/src/tz.c:316:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] libtimezonemap-0.4.6/src/tz.c:355:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] libtimezonemap-0.4.6/src/tz.c:381:23: style:inconclusive: Function 'tz_info_free' argument 1 names different: declaration 'tz_info' definition 'tzinfo'. [funcArgNamesDifferent] libtimezonemap-0.4.6/src/tz.h:74:48: note: Function 'tz_info_free' argument 1 names different: declaration 'tz_info' definition 'tzinfo'. libtimezonemap-0.4.6/src/tz.c:381:23: note: Function 'tz_info_free' argument 1 names different: declaration 'tz_info' definition 'tzinfo'. libtimezonemap-0.4.6/src/tz.c:182:27: style: Variable 'admin1_file' can be declared as pointer to const [constVariablePointer] libtimezonemap-0.4.6/src/tz.c:182:41: style: Variable 'country_file' can be declared as pointer to const [constVariablePointer] libtimezonemap-0.4.6/src/tz.c:285:25: style: Parameter 'db' can be declared as pointer to const [constParameterPointer] libtimezonemap-0.4.6/src/tz.c:306:16: style: Variable 'curzone' can be declared as pointer to const [constVariablePointer] libtimezonemap-0.4.6/src/tz.c:395:26: style: Parameter 'env' can be declared as pointer to const [constParameterPointer] libtimezonemap-0.4.6/src/tz.c:184:10: style: Unused variable: buf [unusedVariable] libtimezonemap-0.4.6/src/tz.c:317:12: style: Variable 'is_dst' is assigned a value that is never used. [unreadVariable] diff: DONE