From 5ca3387d94707a7fad9fa913bcc99d540659baee Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Sat, 13 Jul 2013 09:36:56 +0200 Subject: [PATCH] Fix -Werror warning --- src/main/xlat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/xlat.c b/src/main/xlat.c index 0589f7dfea85..0fbf76b3c383 100644 --- a/src/main/xlat.c +++ b/src/main/xlat.c @@ -527,7 +527,7 @@ void xlat_free(void) rbtree_free(xlat_root); } -#if 0 +#if 1 #define XLAT_DEBUG(fmt, ...) printf(fmt, ## __VA_ARGS__);printf("\n") #endif @@ -1741,7 +1741,9 @@ static char *xlat_aprint(TALLOC_CTX *ctx, REQUEST *request, xlat_exp_t const * c * Some attributes are virtual */ str = xlat_getvp(ctx, ref, node->list, node->da, node->tag, node->num, true); - if (str) XLAT_DEBUG("expand attr %s --> '%s'", node->da->name, str); + if (str) { + XLAT_DEBUG("expand attr %s --> '%s'", node->da->name, str); + } break; case XLAT_VIRTUAL: