summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2018-11-22 17:50:33 +0100
committerVladimír Čunát <vladimir.cunat@nic.cz>2018-11-26 15:18:23 +0100
commit9969ee4f461154c3e00b8dd515f99c15c0f4a06b (patch)
tree38e31db49aab613a3f054c79288810d0920f03d9 /contrib
parentQRVERBOSE: move more code into a function, add docs (diff)
downloadknot-resolver-9969ee4f461154c3e00b8dd515f99c15c0f4a06b.tar.xz
knot-resolver-9969ee4f461154c3e00b8dd515f99c15c0f4a06b.zip
disable more -Wpedantic warnings via #pragma
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ucw/mempool-fmt.c3
-rw-r--r--contrib/ucw/mempool.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/contrib/ucw/mempool-fmt.c b/contrib/ucw/mempool-fmt.c
index 101c4bd5..6c93e1e9 100644
--- a/contrib/ucw/mempool-fmt.c
+++ b/contrib/ucw/mempool-fmt.c
@@ -14,6 +14,9 @@
#include <stdio.h>
#include <string.h>
+/* FIXME: migrate to Knot DNS version of mempools. */
+#pragma GCC diagnostic ignored "-Wpointer-arith"
+
static char *
mp_vprintf_at(struct mempool *mp, size_t ofs, const char *fmt, va_list args)
{
diff --git a/contrib/ucw/mempool.c b/contrib/ucw/mempool.c
index f50c453a..129b7336 100644
--- a/contrib/ucw/mempool.c
+++ b/contrib/ucw/mempool.c
@@ -18,6 +18,9 @@
#include <string.h>
#include <stdlib.h>
+/* FIXME: migrate to Knot DNS version of mempools. */
+#pragma GCC diagnostic ignored "-Wpointer-arith"
+
#define MP_CHUNK_TAIL ALIGN_TO(sizeof(struct mempool_chunk), CPU_STRUCT_ALIGN)
#define MP_SIZE_MAX (SIZE_MAX - MP_CHUNK_TAIL - CPU_PAGE_SIZE)