removed dummy references and replaced with pragma to ignore C4100 warning & removed one unreachable return

This commit is contained in:
Jetro Lauha 2013-10-10 20:17:06 +03:00
parent c7baafd493
commit 9ea087a788
2 changed files with 1 additions and 4 deletions

View File

@ -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);
}

View File

@ -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)