null+****@clear*****
null+****@clear*****
Fri Aug 10 17:54:25 JST 2012
Kouhei Sutou 2012-08-10 17:54:25 +0900 (Fri, 10 Aug 2012) New Revision: 59c3ec43de8ecb96561ea7d588a6473c5a24f0b9 https://github.com/groonga/groonga/commit/59c3ec43de8ecb96561ea7d588a6473c5a24f0b9 Log: clang: suppress a warning db.c:3260:50: warning: variable 'key_size' is uninitialized when used here [-Wuninitialized] if ((id1 = grn_table_get(ctx, table1, key, key_size))) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ ../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:3255: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:53:28 +0900 (b2dc6a8) +++ lib/db.c 2012-08-10 17:54:25 +0900 (898350e) @@ -3252,7 +3252,7 @@ grn_table_difference(grn_ctx *ctx, grn_obj *table1, grn_obj *table2, grn_obj *res1, grn_obj *res2) { void *key; - uint32_t key_size; + uint32_t key_size = 0; if (table1 != res1 || table2 != res2) { return GRN_INVALID_ARGUMENT; } if (grn_table_size(ctx, table1) > grn_table_size(ctx, table2)) { GRN_TABLE_EACH(ctx, table2, 0, 0, id, &key, &key_size, NULL, { -------------- next part -------------- HTML����������������������������...Download