aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/lowpan-tools/lowpan-tools/0001-src-iz.c-Undef-dprintf-before-redefining.patch
blob: 68393067d0daef5954c4d6e9d4087e41755facb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From ad088233608ba2205511da4f270f8ba29844b84c Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 8 Apr 2017 09:02:02 -0700
Subject: [PATCH] src/iz.c: Undef dprintf before redefining

Clang is picky and warns about macros redefinition

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 src/iz.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/iz.c b/src/iz.c
index 32be1a8..886f0a5 100644
--- a/src/iz.c
+++ b/src/iz.c
@@ -60,6 +60,7 @@ static int iz_seq = 0;
 /* Parsed options */
 static int iz_debug = 0;
 
+#undef dprintf
 #define dprintf(lvl, fmt...)			\
 	do {					\
 		if (iz_debug >= lvl)		\
-- 
2.12.2