aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-06-21 12:31:48 +0200
committerMattias Andrée <maandree@kth.se>2020-06-21 12:31:48 +0200
commitb801444251f6c342c3daad2152f9a4f7215ea8ee (patch)
tree1a885c36a5a1fd7ac44b96eb2332434524606c5f /util.c
parentFix CASE macro: tprintf is returns void, so return in separate statement (diff)
downloadsctrace-b801444251f6c342c3daad2152f9a4f7215ea8ee.tar.gz
sctrace-b801444251f6c342c3daad2152f9a4f7215ea8ee.tar.bz2
sctrace-b801444251f6c342c3daad2152f9a4f7215ea8ee.tar.xz
Fix some warnings and move include statement to common.h
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.c b/util.c
index b2d8341..7888133 100644
--- a/util.c
+++ b/util.c
@@ -2,6 +2,11 @@
#include "common.h"
+#if defined(__GNUC__) || defined(__clang__)
+# pragma GCC diagnostic ignored "-Wformat-nonliteral"
+#endif
+
+
static FILE *trace_fp;
static char last_char = '\n';
static pid_t last_pid = 0;