null+****@clear*****
null+****@clear*****
Fri Aug 10 18:16:44 JST 2012
Kouhei Sutou 2012-08-10 18:16:44 +0900 (Fri, 10 Aug 2012) New Revision: db27a702168ba3c50318659cfeef98da91df465b https://github.com/groonga/groonga/commit/db27a702168ba3c50318659cfeef98da91df465b Log: clang: suppress a warning proc.c:2036:9: warning: implicit conversion from enumeration type 'grn_log_level' to different enumeration type 'grn_rc' [-Wconversion] ERR(GRN_ERROR, "couldn't create a hash to hold columns"); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ctx.h:78:21: note: expanded from macro 'GRN_ERROR' #define GRN_ERROR GRN_LOG_ERROR ^ ./ctx.h:144:45: note: expanded from macro 'ERR' #define ERR(rc,...) ERRSET(ctx, GRN_ERROR, (rc), __VA_ARGS__) ^ ./ctx.h:118:15: note: expanded from macro 'ERRSET' ctx_->rc = (r);\ ~ ^ Modified files: lib/proc.c Modified: lib/proc.c (+1 -1) =================================================================== --- lib/proc.c 2012-08-10 18:15:39 +0900 (8b14ea3) +++ lib/proc.c 2012-08-10 18:16:44 +0900 (c8954f2) @@ -2033,7 +2033,7 @@ dump_columns(grn_ctx *ctx, grn_obj *outbuf, grn_obj *table, columns = grn_hash_create(ctx, NULL, sizeof(grn_id), 0, GRN_OBJ_TABLE_HASH_KEY|GRN_HASH_TINY); if (!columns) { - ERR(GRN_ERROR, "couldn't create a hash to hold columns"); + ERR(GRN_NO_MEMORY_AVAILABLE, "couldn't create a hash to hold columns"); return; } -------------- next part -------------- HTML����������������������������...Download