Skip to content

Commit

Permalink
silence warnings in nanosvg.h
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jan 6, 2024
1 parent 34ecb15 commit 763259d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libraries/ZWidget/src/core/nanosvg/nanosvg.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ void nsvgDelete(NSVGimage* image);
#include <stdio.h>
#include <math.h>

#ifdef _MSC_VER
#pragma warning(push);
#pragma warning(disable:4244)
#endif

#define NSVG_PI (3.14159265358979323846264338327f)
#define NSVG_KAPPA90 (0.5522847493f) // Length proportional to radius of a cubic bezier handle for 90deg arcs.

Expand Down Expand Up @@ -3093,6 +3098,10 @@ void nsvgDelete(NSVGimage* image)
free(image);
}

#ifdef _MSC_VER
#pragma warning(pop);
#endif

#endif // NANOSVG_IMPLEMENTATION

#endif // NANOSVG_H

0 comments on commit 763259d

Please sign in to comment.