Navigation Menu

Skip to content

Commit

Permalink
clang: suppress a warning
Browse files Browse the repository at this point in the history
proc.c:2070:11: warning: implicit conversion from enumeration type
      'grn_log_level' to different enumeration type 'grn_rc' [-Wconversion]
      ERR(GRN_ERROR, "corrupted view table");
      ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./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);\
           ~  ^
  • Loading branch information
kou committed Aug 10, 2012
1 parent db27a70 commit 63032b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/proc.c
Expand Up @@ -2067,7 +2067,7 @@ dump_view(grn_ctx *ctx, grn_obj *outbuf, grn_obj *table)
grn_id *table_id;
int key_size = grn_hash_cursor_get_key(ctx, cursor, ((void **)&table_id));
if (key_size != 4) {
ERR(GRN_ERROR, "corrupted view table");
ERR(GRN_INVALID_ARGUMENT, "corrupted view table");
}
GRN_TEXT_PUTS(ctx, outbuf, "view_add ");
dump_obj_name(ctx, outbuf, table);
Expand Down

0 comments on commit 63032b1

Please sign in to comment.