summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-29 00:55:30 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-29 00:55:46 +0200
commitca3ebf1e59eb00ad101ba8b26e5185db4d785610 (patch)
tree6f4410620f4d0c3c75c694fa6bf434abd24fc96d
parent919fd2f427e1a7dda53cd868804d03a61fb0aa87 (diff)
-fix compiler warnings
-rw-r--r--src/regex/gnunet-regex-profiler.c4
-rw-r--r--src/regex/regex_test_lib.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c
index 90e06cf5f..bd223ae8e 100644
--- a/src/regex/gnunet-regex-profiler.c
+++ b/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");
diff --git a/src/regex/regex_test_lib.c b/src/regex/regex_test_lib.c
index f8d3f993f..2fece6bff 100644
--- a/src/regex/regex_test_lib.c
+++ b/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.
*