From 98eed69848038cb9869ff03c26e60eb3a36fa33f Mon Sep 17 00:00:00 2001 From: dhewg Date: Fri, 9 Dec 2011 22:18:07 +0100 Subject: [PATCH] Fix -Wreturn-type warnings in the GL stub no return statement in function returning non-void --- neo/sys/stub/stub_gl.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neo/sys/stub/stub_gl.cpp b/neo/sys/stub/stub_gl.cpp index df742a22..79fcfd0d 100644 --- a/neo/sys/stub/stub_gl.cpp +++ b/neo/sys/stub/stub_gl.cpp @@ -32,7 +32,7 @@ If you have questions concerning this license or the applicable additional terms void glAccum(GLenum op, GLfloat value){}; void glAlphaFunc(GLenum func, GLclampf ref){}; -GLboolean glAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences){}; +GLboolean glAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences){ return false; }; void glArrayElement(GLint i){}; void glBegin(GLenum mode){}; void glBindTexture(GLenum target, GLuint texture){}; @@ -184,9 +184,9 @@ void glIndexub(GLubyte c){}; void glIndexubv(const GLubyte *c){}; void glInitNames(void){}; void glInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer){}; -GLboolean glIsEnabled(GLenum cap){}; -GLboolean glIsList(GLuint list){}; -GLboolean glIsTexture(GLuint texture){}; +GLboolean glIsEnabled(GLenum cap){ return false; }; +GLboolean glIsList(GLuint list){ return false; }; +GLboolean glIsTexture(GLuint texture){ return false; }; void glLightModelf(GLenum pname, GLfloat param){}; void glLightModelfv(GLenum pname, const GLfloat *params){}; void glLightModeli(GLenum pname, GLint param){}; @@ -287,7 +287,7 @@ void glRecti(GLint x1, GLint y1, GLint x2, GLint y2){}; void glRectiv(const GLint *v1, const GLint *v2){}; void glRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2){}; void glRectsv(const GLshort *v1, const GLshort *v2){}; -GLint glRenderMode(GLenum mode){}; +GLint glRenderMode(GLenum mode){ return 0; }; void glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z){}; void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z){}; void glScaled(GLdouble x, GLdouble y, GLdouble z){};