mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-11 08:43:49 +00:00
Resolve gcc -Wshadow / MS C4456 compilation warning(s)
This commit is contained in:
parent
ea30c83d92
commit
5509e2e13e
@ -79,7 +79,6 @@ static GLenum GLEWAPIENTRY glewContextInit ()
|
|||||||
const GLubyte* s;
|
const GLubyte* s;
|
||||||
GLuint dot;
|
GLuint dot;
|
||||||
GLint major, minor;
|
GLint major, minor;
|
||||||
size_t n;
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
getString = glGetString;
|
getString = glGetString;
|
||||||
@ -130,8 +129,11 @@ static GLenum GLEWAPIENTRY glewContextInit ()
|
|||||||
GLEW_VERSION_1_1 = GLEW_VERSION_1_2 == GL_TRUE || ( major == 1 && minor >= 1 ) ? GL_TRUE : GL_FALSE;
|
GLEW_VERSION_1_1 = GLEW_VERSION_1_2 == GL_TRUE || ( major == 1 && minor >= 1 ) ? GL_TRUE : GL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (n = 0; n < sizeof(_glewExtensionString) / sizeof(_glewExtensionString[0]); ++n)
|
{
|
||||||
_glewExtensionString[n] = GL_FALSE;
|
size_t i;
|
||||||
|
for (i = 0; i < sizeof(_glewExtensionString) / sizeof(_glewExtensionString[0]); ++i)
|
||||||
|
_glewExtensionString[i] = GL_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (GLEW_VERSION_3_0)
|
if (GLEW_VERSION_3_0)
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,9 @@ LDFLAGS.GL = -lGL -lX11
|
|||||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||||
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
WARN = -Wall -W
|
WARN += -Wall -W
|
||||||
|
WARN += -Wshadow
|
||||||
|
WARN += -pedantic
|
||||||
POPT = -O2
|
POPT = -O2
|
||||||
CFLAGS.EXTRA += -fPIC
|
CFLAGS.EXTRA += -fPIC
|
||||||
CFLAGS.EXTRA += -Wcast-qual
|
CFLAGS.EXTRA += -Wcast-qual
|
||||||
|
Loading…
Reference in New Issue
Block a user