null+****@clear*****
null+****@clear*****
Fri Aug 10 17:53:28 JST 2012
Kouhei Sutou 2012-08-10 17:53:28 +0900 (Fri, 10 Aug 2012) New Revision: 2873a4c48b5c5dc79f3c1d4cd0e6a6aa5e546396 https://github.com/groonga/groonga/commit/2873a4c48b5c5dc79f3c1d4cd0e6a6aa5e546396 Log: clang: suppress a warning db.c:3220:52: warning: variable 'key_size' 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:3173:20: note: initialize the variable 'key_size' to silence this warning uint32_t key_size; ^ = 0 Modified files: lib/db.c Modified: lib/db.c (+1 -1) =================================================================== --- lib/db.c 2012-08-10 17:52:34 +0900 (2c884fc) +++ lib/db.c 2012-08-10 17:53:28 +0900 (b2dc6a8) @@ -3170,7 +3170,7 @@ grn_table_setoperation(grn_ctx *ctx, grn_obj *table1, grn_obj *table2, grn_obj * grn_rc rc = GRN_SUCCESS; void *key = NULL, *value1 = NULL, *value2 = NULL; uint32_t value_size = 0; - uint32_t key_size; + uint32_t key_size = 0; if (table1 != res) { if (table2 == res) { grn_obj *t = table1; -------------- next part -------------- HTML����������������������������...Download