[Groonga-commit] groonga/groonga at f5526e7 [master] clang: suppress a warning

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 11 16:57:35 JST 2013


Kouhei Sutou	2013-06-11 16:57:35 +0900 (Tue, 11 Jun 2013)

  New Revision: f5526e789198867cc995189782229fb458f9c024
  https://github.com/groonga/groonga/commit/f5526e789198867cc995189782229fb458f9c024

  Message:
    clang: suppress a warning
    
    Add a missing cast.
    
        lib/token.c:494:15: warning: assigning to
              'const unsigned char *' from 'const char *' converts between pointers to
              integer types with different sign [-Wpointer-sign]
          token->orig = str;
                      ^ ~~~

  Modified files:
    lib/token.c

  Modified: lib/token.c (+1 -1)
===================================================================
--- lib/token.c    2013-06-11 16:54:16 +0900 (c779167)
+++ lib/token.c    2013-06-11 16:57:35 +0900 (36e42f0)
@@ -491,7 +491,7 @@ grn_token_open(grn_ctx *ctx, grn_obj *table, const char *str, size_t str_len,
   token->mode = mode;
   token->encoding = encoding;
   token->tokenizer = tokenizer;
-  token->orig = str;
+  token->orig = (const unsigned char *)str;
   token->orig_blen = str_len;
   token->curr = NULL;
   token->nstr = NULL;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index