[Groonga-commit] groonga/groonga at 9653a40 [master] clang: suppress warnings

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Tue Jun 11 17:03:09 JST 2013


Kouhei Sutou	2013-06-11 17:03:09 +0900 (Tue, 11 Jun 2013)

  New Revision: 9653a403e6c0d8166538e6d98cb0250b1a142dc3
  https://github.com/groonga/groonga/commit/9653a403e6c0d8166538e6d98cb0250b1a142dc3

  Message:
    clang: suppress warnings
    
    Use "char" instead of "unsigned char" for human readable string.

  Modified files:
    src/groonga_benchmark.c

  Modified: src/groonga_benchmark.c (+2 -2)
===================================================================
--- src/groonga_benchmark.c    2013-06-11 17:01:14 +0900 (310961e)
+++ src/groonga_benchmark.c    2013-06-11 17:03:09 +0900 (caf2be3)
@@ -784,7 +784,7 @@ do_load_command(grn_ctx *ctx, char *command, int type, int task_id,
       }
 
       if (report_p(grntest_task[task_id].jobtype)) {
-        unsigned char tmpbuf[BUF_LEN];
+        char tmpbuf[BUF_LEN];
 
         if (res_len < BUF_LEN) {
           strncpy(tmpbuf, res, res_len);
@@ -869,7 +869,7 @@ do_command(grn_ctx *ctx, char *command, int type, int task_id)
       }
 
       if (report_p(grntest_task[task_id].jobtype)) {
-        unsigned char tmpbuf[BUF_LEN];
+        char tmpbuf[BUF_LEN];
 
         if (res_len < BUF_LEN) {
           strncpy(tmpbuf, res, res_len);
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る