GRAPHICS: Fix GCC Compiler Duplicated Branch Warnings in Nano SVG

These are emitted if the build is compiled with -Wduplicated-branches.
This commit is contained in:
D G Turner 2022-01-12 04:59:23 +00:00
parent 6205a5d4fe
commit 42f3fb2e93

View file

@ -199,7 +199,8 @@ void nsvgDelete(NSVGimage* image);
#define NSVG_ALIGN_MEET 1
#define NSVG_ALIGN_SLICE 2
#define NSVG_NOTUSED(v) do { (void)(1 ? (void)0 : ( (void)(v) ) ); } while(0)
//#define NSVG_NOTUSED(v) do { (void)(1 ? (void)0 : ( (void)(v) ) ); } while(0)
#define NSVG_NOTUSED(v) do { (void)(v); } while(0)
#define NSVG_RGB(r, g, b) (((unsigned int)r) | ((unsigned int)g << 8) | ((unsigned int)b << 16))
#ifdef _MSC_VER