From 0c7feda6653265eabd032aa83f8a8154ad2425d3 Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Sun, 15 Jun 2014 11:32:27 +0300 Subject: [PATCH] Changed not used macro from do {} while(0), to for(;;) { ... break; } --- src/nanovg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanovg.h b/src/nanovg.h index e3784a0..6d9dcf2 100644 --- a/src/nanovg.h +++ b/src/nanovg.h @@ -584,7 +584,7 @@ struct NVGparams* nvgInternalParams(struct NVGcontext* ctx); // Debug function to dump cached path data. void nvgDebugDumpPathCache(struct NVGcontext* ctx); -#define NVG_NOTUSED(v) do { (void)(1 ? (void)0 : ( (void)(v) ) ); } while(0) +#define NVG_NOTUSED(v) for (;;) { (void)(1 ? (void)0 : ( (void)(v) ) ); break; } #ifdef __cplusplus }