prediction.c: In function 'zbx_timeleft': prediction.c:833:11: warning: 'result' may be used uninitialized in this function [-Wmaybe-uninitialized] *result -= now; ^~ prediction.c:1148:19: note: 'result' was declared here double current, result; ^~~~~~ dbupgrade_3010.c: In function 'DBpatch_3010026_expression_remove_values_impl': dbupgrade_3010.c:978:66: warning: 'value_token.r' may be used uninitialized in this function [-Wmaybe-uninitialized] DBpatch_3010026_expression_move_location(&token, -(cut_loc.r - cut_loc.l + 1)); ~~~~~~~~~~^~~~~~~~~~~ dbupgrade_3010.c:991:66: warning: 'value_token.l' may be used uninitialized in this function [-Wmaybe-uninitialized] DBpatch_3010026_expression_move_location(&token, -(cut_loc.r - cut_loc.l + 1)); ~~~~~~~~~~^~~~~~~~~~~ dbupgrade_3010.c:978:66: warning: 'op_token.l' may be used uninitialized in this function [-Wmaybe-uninitialized] DBpatch_3010026_expression_move_location(&token, -(cut_loc.r - cut_loc.l + 1)); ~~~~~~~~~~^~~~~~~~~~~ host.c: In function 'DBcopy_template_host_prototypes': host.c:3342:80: warning: 'host_prototype' may be used uninitialized in this function [-Wmaybe-uninitialized] group_prototype = (zbx_group_prototype_t *)host_prototype->group_prototypes.values[i]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ host.c:3247:24: note: 'host_prototype' was declared here zbx_host_prototype_t *host_prototype; ^~~~~~~~~~~~~~ host.c:3209:47: warning: 'host_prototype' may be used uninitialized in this function [-Wmaybe-uninitialized] if (FAIL == (i = zbx_vector_uint64_bsearch(&host_prototype->lnk_templateids, templateid, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ host.c:3122:24: note: 'host_prototype' was declared here zbx_host_prototype_t *host_prototype; ^~~~~~~~~~~~~~ db.c: In function 'DBregister_host_flush': db.c:1364:49: warning: 'autoreg_hostid' may be used uninitialized in this function [-Wmaybe-uninitialized] autoreg_host->autoreg_hostid = autoreg_hostid++; ~~~~~~~~~~~~~~^~ lld_item.c: In function 'lld_applications_save': lld_item.c:2286:3: warning: 'application_discoveryid' may be used uninitialized in this function [-Wmaybe-uninitialized] zbx_db_insert_add_values(&db_insert_discovery, application->application_discoveryid, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ application->applicationid, application->application_prototypeid, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ application_prototype->name); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lld_item.c:2260:4: warning: 'applicationid' may be used uninitialized in this function [-Wmaybe-uninitialized] zbx_db_insert_add_values(&db_insert, application->applicationid, hostid, application->name, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ZBX_FLAG_DISCOVERY_CREATED); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ lld_item.c: In function 'lld_items_applications_save': lld_item.c:2464:42: warning: 'itemappid' may be used uninitialized in this function [-Wmaybe-uninitialized] item_application->itemappid = itemappid++; ~~~~~~~~~^~ lld_trigger.c: In function 'lld_triggers_save.isra.18': lld_trigger.c:2654:5: warning: 'triggertagid' may be used uninitialized in this function [-Wmaybe-uninitialized] zbx_db_insert_add_values(&db_insert_ttags, tag->triggertagid, trigger->triggerid, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tag->tag, tag->value); ~~~~~~~~~~~~~~~~~~~~~ lld_trigger.c: In function 'lld_update_triggers': lld_trigger.c:1518:22: warning: 'dependency' may be used uninitialized in this function [-Wmaybe-uninitialized] dependency->flags = ZBX_FLAG_LLD_DEPENDENCY_DISCOVERED; ^ lld_trigger.c:1422:26: note: 'dependency' was declared here zbx_lld_dependency_t *dependency; ^~~~~~~~~~ evalfunc.c: In function 'evaluate_COUNT': evalfunc.c:449:25: warning: 'arg2_dbl' may be used uninitialized in this function [-Wmaybe-uninitialized] if (value >= pattern + ZBX_DOUBLE_EPSILON) evalfunc.c:528:12: note: 'arg2_dbl' was declared here double arg2_dbl; ^~~~~~~~ expression.c: In function 'substitute_simple_macros': expression.c:4014:31: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized] (*data)[token.token.r + 1] = c; ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ task.c: In function 'zbx_tm_save_tasks': task.c:382:25: warning: 'taskid' may be used uninitialized in this function [-Wmaybe-uninitialized] task->taskid = taskid++; ~~~~~~^~ active.c: In function 'active_checks_thread': active.c:1245:24: warning: 'lastlogsize_orig' may be used uninitialized in this function [-Wmaybe-uninitialized] metric->lastlogsize = lastlogsize_orig; ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ active.c:1043:16: note: 'lastlogsize_orig' was declared here zbx_uint64_t lastlogsize_orig; ^~~~~~~~~~~~~~~~ active.c:1247:20: warning: 'big_rec_orig' may be used uninitialized in this function [-Wmaybe-uninitialized] metric->big_rec = big_rec_orig; ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ active.c:1042:17: note: 'big_rec_orig' was declared here mtime_orig, big_rec_orig, logfiles_num_new = 0, jumped = 0; ^~~~~~~~~~~~ active.c:1246:18: warning: 'mtime_orig' may be used uninitialized in this function [-Wmaybe-uninitialized] metric->mtime = mtime_orig; ~~~~~~~~~~~~~~^~~~~~~~~~~~~ active.c:1042:5: note: 'mtime_orig' was declared here mtime_orig, big_rec_orig, logfiles_num_new = 0, jumped = 0; ^~~~~~~~~~ active.c:1203:16: warning: 's_count_orig' may be used uninitialized in this function [-Wmaybe-uninitialized] match_count = s_count_orig - s_count; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ active.c:1041:44: note: 's_count_orig' was declared here int rate, ret = FAIL, s_count, p_count, s_count_orig, is_count_item, max_delay_par_nr, ^~~~~~~~~~~~ In file included from ../../include/sysinc.h:34:0, from ../../include/common.h:23, from logfiles.c:20: logfiles.c: In function 'split_string': logfiles.c:64:31: warning: comparison between pointer and zero character constant [-Wpointer-compare] assert(NULL != part1 && '\0' == *part1); /* target 1 must be empty */ ^ logfiles.c:64:34: note: did you mean to dereference the pointer? assert(NULL != part1 && '\0' == *part1); /* target 1 must be empty */ ^ logfiles.c:64:31: warning: comparison between pointer and zero character constant [-Wpointer-compare] assert(NULL != part1 && '\0' == *part1); /* target 1 must be empty */ ^ logfiles.c:64:34: note: did you mean to dereference the pointer? assert(NULL != part1 && '\0' == *part1); /* target 1 must be empty */ ^ logfiles.c:65:31: warning: comparison between pointer and zero character constant [-Wpointer-compare] assert(NULL != part2 && '\0' == *part2); /* target 2 must be empty */ ^ logfiles.c:65:34: note: did you mean to dereference the pointer? assert(NULL != part2 && '\0' == *part2); /* target 2 must be empty */ ^ logfiles.c:65:31: warning: comparison between pointer and zero character constant [-Wpointer-compare] assert(NULL != part2 && '\0' == *part2); /* target 2 must be empty */ ^ logfiles.c:65:34: note: did you mean to dereference the pointer? assert(NULL != part2 && '\0' == *part2); /* target 2 must be empty */ ^ checks_simple_vmware.c: In function 'vmware_service_get_counter_value_by_id': checks_simple_vmware.c:216:27: warning: 'perfvalue' may be used uninitialized in this function [-Wmaybe-uninitialized] if (0 == strcmp(perfvalue->second, "-1")) ~~~~~~~~~^~~~~~~~ events.c: In function 'get_db_events_info': events.c:2187:4: warning: 'event' may be used uninitialized in this function [-Wmaybe-uninitialized] zbx_vector_ptr_append(&event->tags, tag); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 12699 blocks