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

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 11 15:01:11 JST 2013


Kouhei Sutou	2013-06-11 15:01:11 +0900 (Tue, 11 Jun 2013)

  New Revision: 14236a8753c0cabbaf833e2d49a0f657803ff897
  https://github.com/groonga/groonga/commit/14236a8753c0cabbaf833e2d49a0f657803ff897

  Message:
    clang: suppress a warning
    
    Use signed "char *" for string.
    
        lib/normalizer.c:660:51: warning: passing
              'const unsigned char *' to parameter of type 'const char *' converts
              between pointers to integer types with different sign [-Wpointer-sign]
                grn_tokenizer_is_tokenized_delimiter(ctx, s, ls, GRN_ENC_UTF8)) {
                                                          ^
        include/groonga/tokenizer.h:59:59: note: passing
              argument to parameter 'str_ptr' here
                                                      const char *str_ptr,
                                                                  ^

  Modified files:
    lib/normalizer.c

  Modified: lib/normalizer.c (+2 -1)
===================================================================
--- lib/normalizer.c    2013-06-11 14:56:05 +0900 (b970bc6)
+++ lib/normalizer.c    2013-06-11 15:01:11 +0900 (5ed612e)
@@ -657,7 +657,8 @@ utf8_normalize(grn_ctx *ctx, grn_string *nstr)
       break;
     }
     if (remove_tokenized_delimiter_p &&
-        grn_tokenizer_is_tokenized_delimiter(ctx, s, ls, GRN_ENC_UTF8)) {
+        grn_tokenizer_is_tokenized_delimiter(ctx, (const char *)s, ls,
+                                             GRN_ENC_UTF8)) {
       continue;
     }
     if ((p = (unsigned char *)grn_nfkc_map1(s))) {
-------------- next part --------------
HTML����������������������������...
下载 



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