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

Back to archive index

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


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

  New Revision: 10183b55f7db46588f910a2e30daec60dc49d151
  https://github.com/groonga/groonga/commit/10183b55f7db46588f910a2e30daec60dc49d151

  Message:
    clang: suppress a warning
    
    Use signed "char *" for string.
    
        lib/normalizer.c:703:28: warning: assigning to
              'char *' from 'unsigned char *' converts between pointers to integer types
              with different sign [-Wpointer-sign]
                  nstr->normalized = normalized;
                                   ^ ~~~~~~~~~~

  Modified files:
    lib/normalizer.c

  Modified: lib/normalizer.c (+1 -1)
===================================================================
--- lib/normalizer.c    2013-06-11 15:01:11 +0900 (5ed612e)
+++ lib/normalizer.c    2013-06-11 15:03:04 +0900 (04719bd)
@@ -700,7 +700,7 @@ utf8_normalize(grn_ctx *ctx, grn_string *nstr)
           }
           de = normalized + ds;
           d = normalized + (d - (unsigned char *)nstr->normalized);
-          nstr->normalized = normalized;
+          nstr->normalized = (char *)normalized;
           if (ch) {
             int16_t *checks;
             if (!(checks = GRN_REALLOC(nstr->checks, ds * sizeof(int16_t) + 1))) {
-------------- next part --------------
HTML����������������������������...
Download 



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