Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db.c:3220:47: warning: variable 'key' is uninitialized when used here
[-Wuninitialized]
if (grn_table_add_v_inline(ctx, table1, key, key_size, &value1, NULL)) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/groonga.h:1041:82: note: expanded from macro 'GRN_TABLE_EACH'
...(grn_array *)(table), (head), (tail), (id), (value), block);\
^
../include/groonga.h:2734:7: note: expanded from macro 'GRN_ARRAY_EACH'
block\
^~~~~
db.c:3171:12: note: initialize the variable 'key' to silence this warning
void *key, *value1, *value2;
^
= NULL
----
db.c:3221:24: warning: variable 'value2' is uninitialized when used here
[-Wuninitialized]
memcpy(value1, value2, value_size);
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../include/groonga.h:1035:72: note: expanded from macro 'GRN_TABLE_EACH'
GRN_DAT_EACH((ctx), (grn_dat *)(table), (id), (key), (key_size), block);\
^
../include/groonga.h:2876:9: note: expanded from macro 'GRN_DAT_EACH'
block\
^~~~~
db.c:3171:37: note: initialize the variable 'value2' to silence this warning
void *key = NULL, *value1, *value2;
^
= NULL- Loading branch information