| ^~~~~~~~~~~~~~~ dbupgrade_5030.c: At top level: dbupgrade_5030.c:1919:52: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 1919 | ZBX_VECTOR_DECL(scitem_dim2, zbx_screen_item_dim_t); | ^ In file included from dbupgrade_5030.c:25: dbupgrade_5030.c: In function '__vector_scitem_dim2_ensure_free_space': ../zbxalgo/vectorimpl.h:33:81: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 33 | vector->values = (__type *)vector->mem_malloc_func(NULL, vector->values_alloc * sizeof(__type)); \ | ^ dbupgrade_5030.c:1920:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1920 | ZBX_VECTOR_IMPL(scitem_dim2, zbx_screen_item_dim_t); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c:1920:1: warning: assuming signed overflow does not occur when reducing constant in comparison [-Wstrict-overflow] In file included from dbupgrade_5030.c:25: ../zbxalgo/vectorimpl.h:38:92: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 38 | vector->values = (__type *)vector->mem_realloc_func(vector->values, vector->values_alloc * sizeof(__type)); \ | ^ dbupgrade_5030.c:1920:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1920 | ZBX_VECTOR_IMPL(scitem_dim2, zbx_screen_item_dim_t); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c: In function 'zbx_vector_scitem_dim2_append_array': ../zbxalgo/vectorimpl.h:94:61: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 94 | zbx_vector_ ## __id ## _reserve(vector, vector->values_num + values_num); \ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ dbupgrade_5030.c:1920:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1920 | ZBX_VECTOR_IMPL(scitem_dim2, zbx_screen_item_dim_t); | ^~~~~~~~~~~~~~~ ../zbxalgo/vectorimpl.h:95:65: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 95 | memcpy(vector->values + vector->values_num, values, values_num * sizeof(__type)); \ | ^ dbupgrade_5030.c:1920:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1920 | ZBX_VECTOR_IMPL(scitem_dim2, zbx_screen_item_dim_t); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c: In function 'zbx_vector_scitem_dim2_remove': ../zbxalgo/vectorimpl.h:120:19: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 120 | sizeof(__type) * (vector->values_num - index)); \ | ^ dbupgrade_5030.c:1920:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1920 | ZBX_VECTOR_IMPL(scitem_dim2, zbx_screen_item_dim_t); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c: In function 'zbx_vector_scitem_dim2_sort': ../zbxalgo/vectorimpl.h:126:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 126 | qsort(vector->values, vector->values_num, sizeof(__type), compare_func); \ | ~~~~~~^~~~~~~~~~~~ dbupgrade_5030.c:1920:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1920 | ZBX_VECTOR_IMPL(scitem_dim2, zbx_screen_item_dim_t); | ^~~~~~~~~~~~~~~ In file included from dbupgrade_5030.c:20: dbupgrade_5030.c: In function 'zbx_vector_scitem_dim2_bsearch': ../zbxalgo/vectorimpl.h:176:60: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 176 | ptr = (__type *)zbx_bsearch(&value, vector->values, vector->values_num, sizeof(__type), compare_func); \ | ~~~~~~^~~~~~~~~~~~ ../../../include/common.h:1424:95: note: in definition of macro 'zbx_bsearch' 1424 | #define zbx_bsearch(key, base, nmemb, size, compar) (0 == (nmemb) ? NULL : bsearch(key, base, nmemb, size, compar)) | ^~~~~ dbupgrade_5030.c:1920:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1920 | ZBX_VECTOR_IMPL(scitem_dim2, zbx_screen_item_dim_t); | ^~~~~~~~~~~~~~~ In file included from dbupgrade_5030.c:25: dbupgrade_5030.c: In function 'zbx_vector_scitem_dim2_setdiff': ../zbxalgo/vectorimpl.h:243:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 243 | (left_index - 1 - block_start) * sizeof(__type)); \ | ^ dbupgrade_5030.c:1920:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1920 | ZBX_VECTOR_IMPL(scitem_dim2, zbx_screen_item_dim_t); | ^~~~~~~~~~~~~~~ ../zbxalgo/vectorimpl.h:252:41: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 252 | (left->values_num - block_start) * sizeof(__type)); \ | ^ dbupgrade_5030.c:1920:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1920 | ZBX_VECTOR_IMPL(scitem_dim2, zbx_screen_item_dim_t); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c: In function 'zbx_vector_scitem_dim2_reserve': ../zbxalgo/vectorimpl.h:262:92: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 262 | vector->values = (__type *)vector->mem_realloc_func(vector->values, vector->values_alloc * sizeof(__type)); \ | ^ dbupgrade_5030.c:1920:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1920 | ZBX_VECTOR_IMPL(scitem_dim2, zbx_screen_item_dim_t); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c: At top level: dbupgrade_5030.c:1920:52: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 1920 | ZBX_VECTOR_IMPL(scitem_dim2, zbx_screen_item_dim_t); | ^ dbupgrade_5030.c:1921:29: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 1921 | ZBX_VECTOR_DECL(char2, char); | ^ In file included from dbupgrade_5030.c:25: dbupgrade_5030.c: In function '__vector_char2_ensure_free_space': ../zbxalgo/vectorimpl.h:33:81: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 33 | vector->values = (__type *)vector->mem_malloc_func(NULL, vector->values_alloc * sizeof(__type)); \ | ^ dbupgrade_5030.c:1922:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1922 | ZBX_VECTOR_IMPL(char2, char); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c:1922:1: warning: assuming signed overflow does not occur when reducing constant in comparison [-Wstrict-overflow] In file included from dbupgrade_5030.c:25: ../zbxalgo/vectorimpl.h:38:92: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 38 | vector->values = (__type *)vector->mem_realloc_func(vector->values, vector->values_alloc * sizeof(__type)); \ | ^ dbupgrade_5030.c:1922:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1922 | ZBX_VECTOR_IMPL(char2, char); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c: In function 'zbx_vector_char2_append_array': ../zbxalgo/vectorimpl.h:94:61: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 94 | zbx_vector_ ## __id ## _reserve(vector, vector->values_num + values_num); \ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ dbupgrade_5030.c:1922:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1922 | ZBX_VECTOR_IMPL(char2, char); | ^~~~~~~~~~~~~~~ ../zbxalgo/vectorimpl.h:95:65: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 95 | memcpy(vector->values + vector->values_num, values, values_num * sizeof(__type)); \ | ^ dbupgrade_5030.c:1922:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1922 | ZBX_VECTOR_IMPL(char2, char); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c: In function 'zbx_vector_char2_remove': ../zbxalgo/vectorimpl.h:120:19: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 120 | sizeof(__type) * (vector->values_num - index)); \ | ^ dbupgrade_5030.c:1922:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1922 | ZBX_VECTOR_IMPL(char2, char); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c: In function 'zbx_vector_char2_sort': ../zbxalgo/vectorimpl.h:126:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 126 | qsort(vector->values, vector->values_num, sizeof(__type), compare_func); \ | ~~~~~~^~~~~~~~~~~~ dbupgrade_5030.c:1922:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1922 | ZBX_VECTOR_IMPL(char2, char); | ^~~~~~~~~~~~~~~ In file included from dbupgrade_5030.c:20: dbupgrade_5030.c: In function 'zbx_vector_char2_bsearch': ../zbxalgo/vectorimpl.h:176:60: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 176 | ptr = (__type *)zbx_bsearch(&value, vector->values, vector->values_num, sizeof(__type), compare_func); \ | ~~~~~~^~~~~~~~~~~~ ../../../include/common.h:1424:95: note: in definition of macro 'zbx_bsearch' 1424 | #define zbx_bsearch(key, base, nmemb, size, compar) (0 == (nmemb) ? NULL : bsearch(key, base, nmemb, size, compar)) | ^~~~~ dbupgrade_5030.c:1922:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1922 | ZBX_VECTOR_IMPL(char2, char); | ^~~~~~~~~~~~~~~ In file included from dbupgrade_5030.c:25: dbupgrade_5030.c: In function 'zbx_vector_char2_setdiff': ../zbxalgo/vectorimpl.h:243:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 243 | (left_index - 1 - block_start) * sizeof(__type)); \ | ^ dbupgrade_5030.c:1922:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1922 | ZBX_VECTOR_IMPL(char2, char); | ^~~~~~~~~~~~~~~ ../zbxalgo/vectorimpl.h:252:41: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 252 | (left->values_num - block_start) * sizeof(__type)); \ | ^ dbupgrade_5030.c:1922:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1922 | ZBX_VECTOR_IMPL(char2, char); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c: In function 'zbx_vector_char2_reserve': ../zbxalgo/vectorimpl.h:262:92: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 262 | vector->values = (__type *)vector->mem_realloc_func(vector->values, vector->values_alloc * sizeof(__type)); \ | ^ dbupgrade_5030.c:1922:1: note: in expansion of macro 'ZBX_VECTOR_IMPL' 1922 | ZBX_VECTOR_IMPL(char2, char); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c: At top level: dbupgrade_5030.c:1922:29: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 1922 | ZBX_VECTOR_IMPL(char2, char); | ^ dbupgrade_5030.c: In function 'DBpatch_normalize_screen_items_pos': dbupgrade_5030.c:2086:11: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 2086 | for (x = DBpatch_array_max_used_index(keep_ ## axis, a_size); x >= 0; x--) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ dbupgrade_5030.c:2104:2: note: in expansion of macro 'COMPRESS_SCREEN_ITEMS' 2104 | COMPRESS_SCREEN_ITEMS(x, colspan, SCREEN_MAX_COLS); | ^~~~~~~~~~~~~~~~~~~~~ dbupgrade_5030.c:2086:11: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 2086 | for (x = DBpatch_array_max_used_index(keep_ ## axis, a_size); x >= 0; x--) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ dbupgrade_5030.c:2105:2: note: in expansion of macro 'COMPRESS_SCREEN_ITEMS' 2105 | COMPRESS_SCREEN_ITEMS(y, rowspan, SCREEN_MAX_ROWS); | ^~~~~~~~~~~~~~~~~~~~~ dbupgrade_5030.c: In function 'DBpatch_get_preferred_widget_size': dbupgrade_5030.c:2134:8: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 2134 | *h = (int)round((double)*h / 70); /* WIDGET_ROW_HEIGHT */ | ^ dbupgrade_5030.c:2136:7: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 2136 | *w = (int)round((double)*w / 1920 * DASHBOARD_MAX_COLS); /* DISPLAY_WIDTH */ | ^ dbupgrade_5030.c: In function 'lw_array_to_str': dbupgrade_5030.c:2190:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2190 | len = zbx_snprintf(ptr, max, "[ "); | ^~~ dbupgrade_5030.c:2190:8: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 2190 | len = zbx_snprintf(ptr, max, "[ "); | ^~~~~~~~~~~~ dbupgrade_5030.c:2198:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2198 | len = zbx_snprintf(ptr, max, "%d:%d ", i, (int)v->values[i]); | ^~~ dbupgrade_5030.c:2198:10: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 2198 | len = zbx_snprintf(ptr, max, "%d:%d ", i, (int)v->values[i]); | ^~~~~~~~~~~~ dbupgrade_5030.c: In function 'int_array_debug': dbupgrade_5030.c:2222:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2222 | len = zbx_snprintf(ptr, max, "[ "); | ^~~ dbupgrade_5030.c:2222:8: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 2222 | len = zbx_snprintf(ptr, max, "[ "); | ^~~~~~~~~~~~ dbupgrade_5030.c:2230:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2230 | len = zbx_snprintf(ptr, max, "%d:%d ", i, a[i]); | ^~~ dbupgrade_5030.c:2230:10: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 2230 | len = zbx_snprintf(ptr, max, "%d:%d ", i, a[i]); | ^~~~~~~~~~~~ dbupgrade_5030.c: In function 'lw_array_create_fill': dbupgrade_5030.c:2274:11: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2274 | for (i = start; i < start + num && i < (size_t)v->values_num; i++) | ^~~~~ dbupgrade_5030.c:2274:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2274 | for (i = start; i < start + num && i < (size_t)v->values_num; i++) | ^ dbupgrade_5030.c: In function 'DBpatch_block_compare_func': dbupgrade_5030.c:2351:31: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 2351 | const sciitem_block_t *i1 = *(const sciitem_block_t **)d1; | ^ dbupgrade_5030.c:2352:31: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 2352 | const sciitem_block_t *i2 = *(const sciitem_block_t **)d2; | ^ dbupgrade_5030.c: In function 'DBpatch_get_axis_dimensions': dbupgrade_5030.c:2385:88: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2385 | block->r_block = lw_array_create_fill(scitems->values[i].position, scitems->values[i].span); | ~~~~~~~~~~~~~~~~~~^~~~~ dbupgrade_5030.c:2414:29: warning: conversion from 'int' to 'char' may change value [-Wconversion] 2414 | dimensions->values[n] = MAX(1, size_overflow / block_unsized_count); | ^~~ dbupgrade_5030.c:2428:21: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 2428 | new_dimension = (int)round(factor * dimensions->values[n]); | ^ dbupgrade_5030.c:2431:29: warning: conversion from 'int' to 'char' may change value [-Wconversion] 2431 | dimensions->values[n] = new_dimension; | ^~~~~~~~~~~~~ dbupgrade_5030.c: In function 'DBpatch_widget_from_screen_item': dbupgrade_5030.c:2643:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2643 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "time_type", (void *)&si->style); | ^~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2645:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2645 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_ITEM, "itemid", (void *)&si->resourceid); | ^~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2650:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2650 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_GRAPH, "graphid", (void *)&si->resourceid); | ^~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2653:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2653 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "dynamic", (void *)&tmp); | ^~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2658:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2658 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "source_type", (void *)&tmp); | ^~~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2659:42: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2659 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_ITEM, "itemid", (void *)&si->resourceid); | ^~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2662:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2662 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "dynamic", (void *)&tmp); | ^~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2667:53: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2667 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_GRAPH_PROTOTYPE, "graphid", (void *)&si->resourceid); | ^~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2670:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2670 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "columns", (void *)&tmp); | ^~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2673:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2673 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "dynamic", (void *)&tmp); | ^~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2679:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2679 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "source_type", (void *)&tmp); | ^~~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2680:52: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2680 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_ITEM_PROTOTYPE, "itemid", (void *)&si->resourceid); | ^~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2682:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2682 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "columns", (void *)&tmp); | ^~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2685:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2685 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "dynamic", (void *)&tmp); | ^~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2690:42: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2690 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_ITEM, "itemids", (void *)&si->resourceid); | ^~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2692:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2692 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show_as_html", (void *)&si->style); | ^~~~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2694:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2694 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show_lines", (void *)&si->elements); | ^~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2697:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2697 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "dynamic", (void *)&tmp); | ^~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2701:41: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2701 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_STR, "url", (void *)si->url); | ^~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2704:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2704 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "dynamic", (void *)&tmp); | ^~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2709:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2709 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "sort_triggers", (void *)&si->sort_triggers); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2711:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2711 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show_lines", (void *)&si->elements); | ^~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2717:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2717 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "style", (void *)&tmp); | ^~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2718:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2718 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_GROUP, "groupids", (void *)&si->resourceid); | ^~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2720:42: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2720 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_STR, "application", (void *)si->application); | ^~~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2725:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2725 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show_lines", (void *)&si->elements); | ^~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2727:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2727 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show", (void *)&tmp); | ^~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2732:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2732 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "sort_triggers", (void *)&si->sort_triggers); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2734:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2734 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show_lines", (void *)&si->elements); | ^~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2736:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2736 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_GROUP, "groupids", (void *)&si->resourceid); | ^~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2738:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2738 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show", (void *)&tmp); | ^~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2740:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2740 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show_timeline", (void *)&tmp); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2746:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2746 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "layout", (void *)&tmp); | ^~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2748:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2748 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_GROUP, "groupids", (void *)&si->resourceid); | ^~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2753:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2753 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "sort_triggers", (void *)&si->sort_triggers); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2755:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2755 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show_lines", (void *)&si->elements); | ^~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2757:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2757 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_HOST, "hostids", (void *)&si->resourceid); | ^~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2759:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2759 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show", (void *)&tmp); | ^~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2761:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2761 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show_timeline", (void *)&tmp); | ^~~~~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2765:41: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2765 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_MAP, "sysmapid", (void *)&si->resourceid); | ^~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2767:42: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2767 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_STR, "reference", (void *)reference); | ^~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2778:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2778 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_GROUP, "groupids", (void *)&si->resourceid); | ^~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2780:42: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2780 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_STR, "application", (void *)si->application); | ^~~~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2783:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2783 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "style", (void *)&tmp); | ^~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2785:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2785 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show", (void *)&tmp); | ^~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2790:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2790 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_GROUP, "groupids", (void *)&si->resourceid); | ^~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2793:44: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2793 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "layout", (void *)&tmp); | ^~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c:2795:43: warning: passing argument 2 of 'DBpatch_make_widget_field' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2795 | ADD_FIELD(ZBX_WIDGET_FIELD_TYPE_INT32, "show_type", (void *)&tmp); | ^~~~~~~~~~~ dbupgrade_5030.c:2630:35: note: in definition of macro 'ADD_FIELD' 2630 | f = DBpatch_make_widget_field(a, b, c); \ | ^ dbupgrade_5030.c:2575:73: note: expected 'char *' but argument is of type 'const char *' 2575 | static zbx_db_widget_field_t *DBpatch_make_widget_field(int type, char *name, void *value) | ~~~~~~^~~~ dbupgrade_5030.c: In function 'DBpatch_resourcetype_str': dbupgrade_5030.c:2809:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2809 | return "clock"; | ^~~~~~~ dbupgrade_5030.c:2811:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2811 | return "graph"; | ^~~~~~~ dbupgrade_5030.c:2813:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2813 | return "simplegraph"; | ^~~~~~~~~~~~~ dbupgrade_5030.c:2815:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2815 | return "lldgraph"; | ^~~~~~~~~~ dbupgrade_5030.c:2817:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2817 | return "lldsimplegraph"; | ^~~~~~~~~~~~~~~~ dbupgrade_5030.c:2819:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2819 | return "plaintext"; | ^~~~~~~~~~~ dbupgrade_5030.c:2821:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2821 | return "url"; | ^~~~~ dbupgrade_5030.c:2824:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2824 | return "map"; | ^~~~~ dbupgrade_5030.c:2826:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2826 | return "host info"; | ^~~~~~~~~~~ dbupgrade_5030.c:2828:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2828 | return "trigger info"; | ^~~~~~~~~~~~~~ dbupgrade_5030.c:2830:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2830 | return "server info"; | ^~~~~~~~~~~~~ dbupgrade_5030.c:2832:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2832 | return "trigger overview"; | ^~~~~~~~~~~~~~~~~~ dbupgrade_5030.c:2834:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2834 | return "data overview"; | ^~~~~~~~~~~~~~~ dbupgrade_5030.c:2836:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2836 | return "action"; | ^~~~~~~~ dbupgrade_5030.c:2838:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2838 | return "events"; | ^~~~~~~~ dbupgrade_5030.c:2840:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2840 | return "hostgroup triggers"; | ^~~~~~~~~~~~~~~~~~~~ dbupgrade_5030.c:2842:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2842 | return "system status"; | ^~~~~~~~~~~~~~~ dbupgrade_5030.c:2844:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2844 | return "host triggers"; | ^~~~~~~~~~~~~~~ dbupgrade_5030.c:2806:2: warning: switch missing default case [-Wswitch-default] 2806 | switch (rtype) | ^~~~~~ dbupgrade_5030.c:2847:9: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2847 | return "*unknown*"; | ^~~~~~~~~~~ dbupgrade_5030.c: In function 'DBpatch_convert_screen_items': dbupgrade_5030.c:3143:18: warning: passing argument 1 of 'lw_array_debug' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 3143 | lw_array_debug("dim_x", dim_x); | ^~~~~~~ dbupgrade_5030.c:2210:34: note: expected 'char *' but argument is of type 'const char *' 2210 | static void lw_array_debug(char *pfx, zbx_vector_char2_t *v) | ~~~~~~^~~ dbupgrade_5030.c:3144:18: warning: passing argument 1 of 'lw_array_debug' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 3144 | lw_array_debug("dim_y", dim_y); | ^~~~~~~ dbupgrade_5030.c:2210:34: note: expected 'char *' but argument is of type 'const char *' 2210 | static void lw_array_debug(char *pfx, zbx_vector_char2_t *v) | ~~~~~~^~~ dbupgrade_5030.c:3162:19: warning: passing argument 1 of 'int_array_debug' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 3162 | int_array_debug("offsets_x", offsets_x, OFFSET_ARRAY_SIZE, -1); | ^~~~~~~~~~~ dbupgrade_5030.c:2215:35: note: expected 'char *' but argument is of type 'const char *' 2215 | static void int_array_debug(char *pfx, int *a, int alen, int emptyval) | ~~~~~~^~~ dbupgrade_5030.c:3163:19: warning: passing argument 1 of 'int_array_debug' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 3163 | int_array_debug("offsets_y", offsets_y, OFFSET_ARRAY_SIZE, -1); | ^~~~~~~~~~~ dbupgrade_5030.c:2215:35: note: expected 'char *' but argument is of type 'const char *' 2215 | static void int_array_debug(char *pfx, int *a, int alen, int emptyval) | ~~~~~~^~~ dbupgrade_5030.c: In function 'DBpatch_convert_screen': dbupgrade_5030.c:3257:76: warning: passing argument 3 of 'DBpatch_add_dashboard_page' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 3257 | ret = DBpatch_add_dashboard_page(&dashboard_page, dashboard.dashboardid, "", 0, 0); | ^~ dbupgrade_5030.c:2890:109: note: expected 'char *' but argument is of type 'const char *' 2890 | static int DBpatch_add_dashboard_page(zbx_db_dashboard_page_t *dashboard_page, uint64_t dashboardid, char *name, | ~~~~~~^~~~ dbupgrade_5030.c: At top level: dbupgrade_5030.c:1897: warning: macro "ZBX_WIDGET_FIELD_RESOURCE_GRAPH" is not used [-Wunused-macros] 1897 | #define ZBX_WIDGET_FIELD_RESOURCE_GRAPH (0) | dbupgrade_5030.c:1898: warning: macro "ZBX_WIDGET_FIELD_RESOURCE_SIMPLE_GRAPH" is not used [-Wunused-macros] 1898 | #define ZBX_WIDGET_FIELD_RESOURCE_SIMPLE_GRAPH (1) | dbupgrade_5030.c:1899: warning: macro "ZBX_WIDGET_FIELD_RESOURCE_GRAPH_PROTOTYPE" is not used [-Wunused-macros] 1899 | #define ZBX_WIDGET_FIELD_RESOURCE_GRAPH_PROTOTYPE (2) | dbupgrade_5030.c:1900: warning: macro "ZBX_WIDGET_FIELD_RESOURCE_SIMPLE_GRAPH_PROTOTYPE" is not used [-Wunused-macros] 1900 | #define ZBX_WIDGET_FIELD_RESOURCE_SIMPLE_GRAPH_PROTOTYPE (3) | In file included from dbupgrade_5030.c:21: dbupgrade_5030.c: In function 'DBpatch_adjust_axis_dimensions': ../../../include/log.h:69:4: warning: 'potential_value' may be used uninitialized in this function [-Wmaybe-uninitialized] 69 | __zbx_zabbix_log(level, __VA_ARGS__); \ | ^~~~~~~~~~~~~~~~ dbupgrade_5030.c:2461:10: note: 'potential_value' was declared here 2461 | double potential_value; | ^~~~~~~~~~~~~~~