summaryrefslogtreecommitdiff
path: root/src/mbuf.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-08-31 01:22:21 +0200
committerRichard Braun <rbraun@sceen.net>2018-08-31 01:22:21 +0200
commit93069a0a9f9dd82fc7d57c72704b2328e633d4aa (patch)
tree54d46f0e672fcfa692eeac2492e5f2aff6ff36b1 /src/mbuf.c
parentb0969d077818a74f2fd26b5a7bec2263a4517b07 (diff)
mbuf: fix warning when assertions are disabled
Diffstat (limited to 'src/mbuf.c')
-rw-r--r--src/mbuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbuf.c b/src/mbuf.c
index 27d6221..a6cfc7f 100644
--- a/src/mbuf.c
+++ b/src/mbuf.c
@@ -29,6 +29,7 @@
#include <stddef.h>
#include <stdint.h>
+#include "macros.h"
#include "mbuf.h"
/*
@@ -82,7 +83,7 @@ mbuf_clear_old_msgs(struct mbuf *mbuf, size_t total_size)
{
struct mbuf_hdr hdr;
size_t size;
- int error;
+ __unused int error;
do {
size = sizeof(hdr);