Kouhei Sutou
null+****@clear*****
Tue Jun 11 15:49:29 JST 2013
Kouhei Sutou 2013-06-11 15:49:29 +0900 (Tue, 11 Jun 2013) New Revision: 4b26c30992bba5015934c04df778721ca1e35bd7 https://github.com/groonga/groonga/commit/4b26c30992bba5015934c04df778721ca1e35bd7 Message: clang: suppress a warning Use "char *" instead of "byte *" for byte string because we check only whether any '\0' character exists or not. lib/str.c:3263:9: warning: initializing 'byte *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] byte *v = GRN_BULK_HEAD(obj); ^ ~~~~~~~~~~~~~~~~~~ Modified files: lib/str.c Modified: lib/str.c (+1 -1) =================================================================== --- lib/str.c 2013-06-11 15:43:31 +0900 (701a265) +++ lib/str.c 2013-06-11 15:49:29 +0900 (ee637a2) @@ -3260,7 +3260,7 @@ grn_text_fgets(grn_ctx *ctx, grn_obj *buf, FILE *fp) grn_bool grn_bulk_is_zero(grn_ctx *ctx, grn_obj *obj) { - byte *v = GRN_BULK_HEAD(obj); + const char *v = GRN_BULK_HEAD(obj); unsigned int s = GRN_BULK_VSIZE(obj); for (; s; s--, v++) { if (*v) { return GRN_FALSE; } -------------- next part -------------- HTML����������������������������... Download