[Groonga-commit] groonga/groonga [master] Suppress warnings

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 26日 (火) 22:05:40 JST


Kouhei Sutou	2012-06-26 22:05:40 +0900 (Tue, 26 Jun 2012)

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

  Log:
    Suppress warnings
    
    table.c:186:5: warning: field precision specifier '.*' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat]
    table.c:186:5: warning: field precision specifier '.*' expects argument of type 'int', but argument 7 has type 'long int' [-Wformat]

  Modified files:
    plugins/table/table.c

  Modified: plugins/table/table.c (+1 -1)
===================================================================
--- plugins/table/table.c    2012-06-26 19:17:20 +0900 (e6354c5)
+++ plugins/table/table.c    2012-06-26 22:05:40 +0900 (46ad869)
@@ -184,7 +184,7 @@ command_filter(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data
   }
   if (!(column = grn_obj_column(ctx, table, TEXT_VALUE_LEN(VAR(1))))) {
     ERR(GRN_INVALID_ARGUMENT, "invalid column name: <%.*s>",
-        GRN_TEXT_LEN(VAR(1)), GRN_TEXT_VALUE(VAR(1)));
+        (int)GRN_TEXT_LEN(VAR(1)), GRN_TEXT_VALUE(VAR(1)));
     goto exit;
   }
   if (TEXT_VALUE_LEN(VAR(2)) == 0) {
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index