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 }