null+****@clear*****
null+****@clear*****
Fri Aug 10 18:15:39 JST 2012
Kouhei Sutou 2012-08-10 18:15:39 +0900 (Fri, 10 Aug 2012) New Revision: a5a08a567e873b0bf8588d1790c4f8f7545b4bbc https://github.com/groonga/groonga/commit/a5a08a567e873b0bf8588d1790c4f8f7545b4bbc Log: clang: suppress a warning proc.c:1883:34: warning: variable 'key' is uninitialized when used here [-Wuninitialized] grn_id id = *(grn_id *)key; ~~~~~~~~~~~~~~~~~~~~~~~^~~~ ../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\ ^~~~~ proc.c:1880:18: note: initialize the variable 'key' to silence this warning void *key; ^ = NULL Modified files: lib/proc.c Modified: lib/proc.c (+1 -1) =================================================================== --- lib/proc.c 2012-08-10 18:13:40 +0900 (5e855a4) +++ lib/proc.c 2012-08-10 18:15:39 +0900 (8b14ea3) @@ -1877,7 +1877,7 @@ proc_delete(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data) records = grn_table_select(ctx, table, cond, NULL, GRN_OP_OR); if (records) { - void *key; + void *key = NULL; GRN_TABLE_EACH(ctx, records, GRN_ID_NIL, GRN_ID_NIL, result_id, &key, NULL, NULL, { grn_id id = *(grn_id *)key; -------------- next part -------------- HTML����������������������������... Download