mirror of
https://github.com/nigels-com/glew.git
synced 2025-07-02 03:27:41 +00:00
gcc: Resolve compilation warnings in EGL mode
This commit is contained in:
parent
c1e0fc488d
commit
68710dd920
@ -195,7 +195,6 @@ GLboolean glewCreateContext (struct createParams *params)
|
|||||||
EGLDeviceEXT devices[1];
|
EGLDeviceEXT devices[1];
|
||||||
EGLint numDevices;
|
EGLint numDevices;
|
||||||
EGLSurface surface;
|
EGLSurface surface;
|
||||||
EGLint majorVersion, minorVersion;
|
|
||||||
EGLint configAttribs[] = {
|
EGLint configAttribs[] = {
|
||||||
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
|
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
|
||||||
EGL_RED_SIZE, 1,
|
EGL_RED_SIZE, 1,
|
||||||
@ -229,6 +228,8 @@ GLboolean glewCreateContext (struct createParams *params)
|
|||||||
PFNEGLMAKECURRENTPROC makeCurrent = NULL;
|
PFNEGLMAKECURRENTPROC makeCurrent = NULL;
|
||||||
PFNEGLCREATEPBUFFERSURFACEPROC createPbufferSurface = NULL;
|
PFNEGLCREATEPBUFFERSURFACEPROC createPbufferSurface = NULL;
|
||||||
|
|
||||||
|
(void) params; /* not used */
|
||||||
|
|
||||||
/* Load necessary entry points */
|
/* Load necessary entry points */
|
||||||
queryDevices = (PFNEGLQUERYDEVICESEXTPROC) eglGetProcAddress("eglQueryDevicesEXT");
|
queryDevices = (PFNEGLQUERYDEVICESEXTPROC) eglGetProcAddress("eglQueryDevicesEXT");
|
||||||
getPlatformDisplay = (PFNEGLGETPLATFORMDISPLAYEXTPROC) eglGetProcAddress("eglGetPlatformDisplayEXT");
|
getPlatformDisplay = (PFNEGLGETPLATFORMDISPLAYEXTPROC) eglGetProcAddress("eglGetPlatformDisplayEXT");
|
||||||
@ -483,6 +484,7 @@ void glewDestroyContext ()
|
|||||||
GLboolean glewCreateContext (struct createParams *params)
|
GLboolean glewCreateContext (struct createParams *params)
|
||||||
{
|
{
|
||||||
/* TODO: Haiku: We need to call C++ code here */
|
/* TODO: Haiku: We need to call C++ code here */
|
||||||
|
(void) params; /* not used */
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -260,6 +260,7 @@ void PrintExtensions (const char* s)
|
|||||||
void
|
void
|
||||||
VisualInfo (GLContext* ctx)
|
VisualInfo (GLContext* ctx)
|
||||||
{
|
{
|
||||||
|
(void) ctx; /* not used */
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
@ -1049,13 +1050,13 @@ void InitContext (GLContext* ctx)
|
|||||||
|
|
||||||
GLboolean CreateContext (GLContext* ctx)
|
GLboolean CreateContext (GLContext* ctx)
|
||||||
{
|
{
|
||||||
|
(void) ctx; /* not used */
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DestroyContext (GLContext* ctx)
|
void DestroyContext (GLContext* ctx)
|
||||||
{
|
{
|
||||||
if (NULL == ctx) return;
|
(void) ctx; /* not used */
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------------ */
|
||||||
|
Loading…
Reference in New Issue
Block a user