gcc: Resolve compilation warnings in EGL mode

This commit is contained in:
Nigel Stewart 2025-06-19 19:44:22 +10:00
parent c1e0fc488d
commit 68710dd920
2 changed files with 6 additions and 3 deletions

View File

@ -195,7 +195,6 @@ GLboolean glewCreateContext (struct createParams *params)
EGLDeviceEXT devices[1];
EGLint numDevices;
EGLSurface surface;
EGLint majorVersion, minorVersion;
EGLint configAttribs[] = {
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
EGL_RED_SIZE, 1,
@ -229,6 +228,8 @@ GLboolean glewCreateContext (struct createParams *params)
PFNEGLMAKECURRENTPROC makeCurrent = NULL;
PFNEGLCREATEPBUFFERSURFACEPROC createPbufferSurface = NULL;
(void) params; /* not used */
/* Load necessary entry points */
queryDevices = (PFNEGLQUERYDEVICESEXTPROC) eglGetProcAddress("eglQueryDevicesEXT");
getPlatformDisplay = (PFNEGLGETPLATFORMDISPLAYEXTPROC) eglGetProcAddress("eglGetPlatformDisplayEXT");
@ -483,6 +484,7 @@ void glewDestroyContext ()
GLboolean glewCreateContext (struct createParams *params)
{
/* TODO: Haiku: We need to call C++ code here */
(void) params; /* not used */
return GL_FALSE;
}

View File

@ -260,6 +260,7 @@ void PrintExtensions (const char* s)
void
VisualInfo (GLContext* ctx)
{
(void) ctx; /* not used */
}
#elif defined(_WIN32)
@ -1049,13 +1050,13 @@ void InitContext (GLContext* ctx)
GLboolean CreateContext (GLContext* ctx)
{
(void) ctx; /* not used */
return GL_FALSE;
}
void DestroyContext (GLContext* ctx)
{
if (NULL == ctx) return;
return;
(void) ctx; /* not used */
}
/* ------------------------------------------------------------------------ */