Skip to content

Commit c95dd2e

Browse files
committed
Also fix silly MSVC warnings
1 parent a69585b commit c95dd2e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

rts/lib/headlessStubs/gladstub.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void APIENTRY impl_glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLin
106106
void APIENTRY impl_glDeleteQueries(GLsizei n, const GLuint* ids) {}
107107

108108
void APIENTRY impl_glUseProgram(GLuint program) {}
109-
GLuint APIENTRY impl_glCreateProgram() { return 0; }
109+
GLuint APIENTRY impl_glCreateProgram(void) { return 0; }
110110
void APIENTRY impl_glDeleteProgram(GLuint program) {}
111111
void APIENTRY impl_glProgramParameteri(GLuint program, GLenum pname, GLint value) {}
112112
void APIENTRY impl_glProgramParameteriEXT(GLuint program, GLenum pname, GLint value) {}
@@ -247,7 +247,7 @@ GLhandleARB APIENTRY impl_glCreateShaderObjectARB(GLenum shaderType) {
247247
// headless include/GL is behind mingwlibs, avoid signature conflict
248248
// void APIENTRY impl_glShaderSourceARB(GLhandleARB shaderObj, GLsizei count, const GLcharARB**string, const GLint *length) {}
249249
void APIENTRY impl_glCompileShaderARB(GLhandleARB shaderObj) {}
250-
GLhandleARB APIENTRY impl_glCreateProgramObjectARB() {
250+
GLhandleARB APIENTRY impl_glCreateProgramObjectARB(void) {
251251
return 0;
252252
}
253253
void APIENTRY impl_glAttachObjectARB(GLhandleARB containerObj, GLhandleARB obj) {}
@@ -438,8 +438,8 @@ void APIENTRY impl_glEvalMesh1(GLenum mode, GLint i1, GLint i2) {}
438438
void APIENTRY impl_glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2) {}
439439
void APIENTRY impl_glEvalPoint1(GLint i) {}
440440
void APIENTRY impl_glEvalPoint2(GLint i, GLint j) {}
441-
void APIENTRY impl_glFinish() {}
442-
void APIENTRY impl_glFlush() {}
441+
void APIENTRY impl_glFinish(void) {}
442+
void APIENTRY impl_glFlush(void) {}
443443
void APIENTRY impl_glFrontFace(GLenum mode) {}
444444

445445
void APIENTRY impl_glFrustum(GLdouble left, GLdouble right,
@@ -456,7 +456,7 @@ void APIENTRY impl_glGetTexImage(GLenum target, GLint level,
456456

457457
void APIENTRY impl_glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint* params) {}
458458

459-
void APIENTRY impl_glInitNames() {}
459+
void APIENTRY impl_glInitNames(void) {}
460460

461461
GLboolean APIENTRY impl_glIsTexture(GLuint texture) {
462462
return 0;
@@ -484,7 +484,7 @@ void APIENTRY impl_glNormal3fv(const GLfloat* v) {}
484484

485485
void APIENTRY impl_glPixelStorei(GLenum pname, GLint param) {}
486486
void APIENTRY impl_glPushName(GLuint name) {}
487-
void APIENTRY impl_glPopName() {}
487+
void APIENTRY impl_glPopName(void) {}
488488
void APIENTRY impl_glReadBuffer(GLenum mode) {}
489489

490490
void APIENTRY impl_glReadPixels(GLint x, GLint y,
@@ -555,13 +555,13 @@ void APIENTRY impl_glMaterialf(GLenum face, GLenum pname, GLfloat param) {}
555555
void APIENTRY impl_glPointSize(GLfloat size) {}
556556
void APIENTRY impl_glCullFace(GLenum mode) {}
557557
void APIENTRY impl_glLogicOp(GLenum opcode) {}
558-
void APIENTRY impl_glEndList() {}
558+
void APIENTRY impl_glEndList(void) {}
559559
GLuint APIENTRY impl_glGenLists(GLsizei range) {
560560
return 0;
561561
}
562562

563563
void APIENTRY impl_glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) {}
564-
void APIENTRY impl_glLoadIdentity() {}
564+
void APIENTRY impl_glLoadIdentity(void) {}
565565
void APIENTRY impl_glOrtho(GLdouble left, GLdouble right,
566566
GLdouble bottom, GLdouble top,
567567
GLdouble near_val, GLdouble far_val) {}
@@ -593,7 +593,7 @@ void APIENTRY impl_glTexCoord2i(GLint s, GLint t) {}
593593
void APIENTRY impl_glVertex2f(GLfloat x, GLfloat y) {}
594594
void APIENTRY impl_glVertex3f(GLfloat x, GLfloat y, GLfloat z) {}
595595
void APIENTRY impl_glBegin(GLenum mode) {}
596-
void APIENTRY impl_glEnd() {}
596+
void APIENTRY impl_glEnd(void) {}
597597

598598
void APIENTRY impl_glDeleteTextures(GLsizei n, const GLuint* textures) {}
599599

@@ -632,16 +632,16 @@ void APIENTRY impl_glBlendFunc(GLenum sfactor, GLenum dfactor) {}
632632
void APIENTRY impl_glTranslatef(GLfloat x, GLfloat y, GLfloat z) {}
633633
void APIENTRY impl_glColor4fv(const GLfloat* v) {}
634634
void APIENTRY impl_glLineStipple(GLint factor, GLushort pattern) {}
635-
void APIENTRY impl_glPopAttrib() {}
635+
void APIENTRY impl_glPopAttrib(void) {}
636636
void APIENTRY impl_glPushAttrib(GLbitfield mask) {}
637637
void APIENTRY impl_glDepthMask(GLboolean flag) {}
638638
void APIENTRY impl_glAlphaFunc(GLenum func, GLclampf ref) {}
639639

640640
void APIENTRY impl_glFogfv(GLenum pname, const GLfloat* params) {}
641641
void APIENTRY impl_glFogf(GLenum pname, GLfloat param) {}
642642
void APIENTRY impl_glFogi(GLenum pname, GLint param) {}
643-
void APIENTRY impl_glPushMatrix() {}
644-
void APIENTRY impl_glPopMatrix() {}
643+
void APIENTRY impl_glPushMatrix(void) {}
644+
void APIENTRY impl_glPopMatrix(void) {}
645645
void APIENTRY impl_glCallList(GLuint list) {}
646646

647647
void APIENTRY impl_glTexSubImage2D(GLenum target, GLint level,

0 commit comments

Comments
 (0)