ソースを参照

-fix compiler warnings

Christian Grothoff 3 年 前
コミット
ca3ebf1e59
2 ファイル変更7 行追加1 行削除
  1. 3 1
      src/regex/gnunet-regex-profiler.c
  2. 4 0
      src/regex/regex_test_lib.c

+ 3 - 1
src/regex/gnunet-regex-profiler.c

@@ -570,7 +570,9 @@ stats_iterator (void *cls,
                      sizeof(output_buffer),
                      "%p [%s] %llu %s\n",
                      peer,
-                     subsystem, value, name);
+                     subsystem,
+                     (unsigned long long) value,
+                     name);
   if (size != GNUNET_DISK_file_write (data_file, output_buffer, size))
     GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                 "Unable to write to file!\n");

+ 4 - 0
src/regex/regex_test_lib.c

@@ -93,6 +93,7 @@ c2i (char c, int size)
 }
 
 
+#if DEBUG_REGEX
 /**
  * Printf spaces to indent the regex tree
  *
@@ -106,6 +107,9 @@ space (int n)
 }
 
 
+#endif
+
+
 /**
  * Printf the combined regex ctx.
  *