summaryrefslogtreecommitdiffstats
path: root/benchmark/dict_bench.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-31 17:21:49 +0100
committerDavid Robillard <d@drobilla.net>2020-12-31 18:13:53 +0100
commitce3e4266e4f0712b27563d079b7e7b6fd8013014 (patch)
tree85cae1c8f7fc3f727b8fb14795f358a18fdbc022 /benchmark/dict_bench.c
parentdd6e02903318710ef5c517759b64e6b4e7e2972d (diff)
downloadzix-ce3e4266e4f0712b27563d079b7e7b6fd8013014.tar.gz
zix-ce3e4266e4f0712b27563d079b7e7b6fd8013014.tar.bz2
zix-ce3e4266e4f0712b27563d079b7e7b6fd8013014.zip
Disable glib warnings in the code
Though annoying, this avoids relying on special compiler flags to suppress them.
Diffstat (limited to 'benchmark/dict_bench.c')
-rw-r--r--benchmark/dict_bench.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmark/dict_bench.c b/benchmark/dict_bench.c
index 23e2f55..5d849d6 100644
--- a/benchmark/dict_bench.c
+++ b/benchmark/dict_bench.c
@@ -15,12 +15,15 @@
*/
#include "bench.h"
+#include "warnings.h"
#include "zix/chunk.h"
#include "zix/common.h"
#include "zix/hash.h"
+ZIX_DISABLE_GLIB_WARNINGS
#include <glib.h>
+ZIX_RESTORE_WARNINGS
#include <ctype.h>
#include <stdarg.h>