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:
parent
6205a5d4fe
commit
42f3fb2e93
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue