From 9ea087a788b23c5e4aa2f721f5e359cbbcbac206 Mon Sep 17 00:00:00 2001 From: Jetro Lauha Date: Thu, 10 Oct 2013 20:17:06 +0300 Subject: [PATCH] removed dummy references and replaced with pragma to ignore C4100 warning & removed one unreachable return --- example/main.c | 2 -- src/nanosvg.h | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/example/main.c b/example/main.c index b0b86b1..d290dc2 100644 --- a/example/main.c +++ b/example/main.c @@ -121,7 +121,6 @@ void drawPath(float* pts, int npts, char closed, float tol) void drawControlPts(float* pts, int npts, char closed) { int i; - closed; // prevent warnings // Control lines glColor4ubv(lineColor); @@ -228,7 +227,6 @@ void drawframe(GLFWwindow* window) void resizecb(GLFWwindow* window, int width, int height) { // Update and render - width; height; // prevent warnings drawframe(window); } diff --git a/src/nanosvg.h b/src/nanosvg.h index 1218539..35057af 100644 --- a/src/nanosvg.h +++ b/src/nanosvg.h @@ -103,6 +103,7 @@ void nsvgDelete(struct NSVGImage* image); #ifdef _MSC_VER #pragma warning (disable: 4996) // Switch off security warnings + #pragma warning (disable: 4100) // Switch off unreferenced formal parameter warnings #ifdef __cplusplus #define NSVG_INLINE inline #else @@ -605,7 +606,6 @@ static unsigned int nsvg__parseColorRGB(const char* str) } else { return NSVG_RGB(r,g,b); } - return 0; } struct NSVGNamedColor { @@ -1739,7 +1739,6 @@ static void nsvg__endElement(void* ud, const char* el) static void nsvg__content(void* ud, const char* s) { // empty - ud; s; // prevent warnings } struct NSVGImage* nsvgParse(char* input)