From 26710729a364853002e3130c3d1e431793bb4625 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 22 Mar 2013 17:28:07 +0100 Subject: [PATCH] Suppress warnings in release mode Fixes #698 --- base/include/base/printf.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/include/base/printf.h b/base/include/base/printf.h index db2099acd5..c215d657e6 100644 --- a/base/include/base/printf.h +++ b/base/include/base/printf.h @@ -68,8 +68,10 @@ namespace Genode { */ #ifdef GENODE_RELEASE #define DO_PDBG false +#define DO_PWRN false #else #define DO_PDBG true +#define DO_PWRN true #endif /* GENODE_RELEASE */ /** @@ -96,7 +98,8 @@ namespace Genode { * Print warning message */ #define PWRN(fmt, ...) \ - Genode::printf(ESC_WRN fmt ESC_END "\n", ##__VA_ARGS__ ) + if (DO_PWRN) \ + Genode::printf(ESC_WRN fmt ESC_END "\n", ##__VA_ARGS__ ) /** * Print error message