Navigation Menu

Skip to content

Commit

Permalink
clang: suppress a warning
Browse files Browse the repository at this point in the history
proc.c:2238:13: warning: implicit conversion from enumeration type
      'grn_log_level' to different enumeration type 'grn_rc' [-Wconversion]
        ERR(GRN_ERROR, "invalid header type %d", column->header.type);
        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./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 e8e2dca commit 07c6de0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/proc.c
Expand Up @@ -2237,7 +2237,9 @@ dump_records(grn_ctx *ctx, grn_obj *outbuf, grn_obj *table)
}
break;
default:
ERR(GRN_ERROR, "invalid header type %d", column->header.type);
ERR(GRN_OPERATION_NOT_SUPPORTED,
"unsupported header type %#x",
column->header.type);
break;
}
}
Expand Down

0 comments on commit 07c6de0

Please sign in to comment.