From 5120e612f40c732ede45fb1a65938bf71f97b4ff Mon Sep 17 00:00:00 2001 From: Wook Song Date: Mon, 6 Feb 2017 12:57:40 +0900 Subject: [PATCH] shared: Fix warning messages due to LOG_TAG define This patch eliminates the following warning messages: In file included from pass-0.0.1/src/shared/dbus.c:27:0: pass-0.0.1/src/shared/log.h:23:0: warning: "LOG_TAG" redefined #define LOG_TAG "PASS" ^ In file included from /usr/include/dlog/dlog.h:34:0, from pass-0.0.1/src/shared/log.h:22, from pass-0.0.1/src/shared/dbus.c:27: /usr/include/dlog/dlog-internal.h:41:0: note: this is the location of the previous definition #define LOG_TAG NULL Change-Id: I072216c79a5daa883097601876cfff1f731ceaef Signed-off-by: Wook Song --- src/shared/log.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shared/log.h b/src/shared/log.h index 636be78..0359108 100644 --- a/src/shared/log.h +++ b/src/shared/log.h @@ -20,7 +20,11 @@ #define __LOG_H__ #include +#ifdef LOG_TAG +#undef LOG_TAG #define LOG_TAG "PASS" +#endif /* LOG_TAG */ + #define _D(fmt, arg...) do { SLOGD(fmt, ##arg); } while(0) #define _I(fmt, arg...) do { SLOGI(fmt, ##arg); } while(0) -- 2.7.4