[apparmor] [PATCH 3/3] parser: Fix "PDEBUG" redefined warning

Tyler Hicks tyhicks at canonical.com
Fri Feb 27 23:37:12 UTC 2015


Only present when building with DEBUG=1.

Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
---
 parser/parser_policy.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/parser/parser_policy.c b/parser/parser_policy.c
index c27c790..966044d 100644
--- a/parser/parser_policy.c
+++ b/parser/parser_policy.c
@@ -34,8 +34,10 @@
 
 /* #define DEBUG */
 #ifdef DEBUG
+#undef PDEBUG
 #define PDEBUG(fmt, args...) fprintf(stderr, "Lexer: " fmt, ## args)
 #else
+#undef PDEBUG
 #define PDEBUG(fmt, args...)	/* Do nothing */
 #endif
 #define NPDEBUG(fmt, args...)	/* Do nothing */
-- 
2.1.4




More information about the AppArmor mailing list