Commit c08014ad authored by Vinson Lee's avatar Vinson Lee

Silence MSVC C4255 warnings.

MSVC 4255 warning:
'function' : no function prototype given: converting '()' to '(void)'
parent 4d7a1e3d
......@@ -27,7 +27,7 @@ static void Display(void)
piglit_report_result(PIGLIT_SUCCESS);
}
static void init()
static void init(void)
{
GLubyte data[4096]; /* 32*32*4 */
......
......@@ -28,7 +28,7 @@ static void Display(void)
piglit_report_result(PIGLIT_SUCCESS);
}
static void init()
static void init(void)
{
glViewport(0, 0, Width, Height);
......
......@@ -28,7 +28,7 @@ static GLubyte data[] = { 0x8f, 0xff, 0x7f, 0x70 };
static GLuint tex_name;
void init()
void init(void)
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
......@@ -60,7 +60,7 @@ void init()
void display()
void display(void)
{
int i, j, k, col, pixel;
GLfloat expected[4];
......
......@@ -80,7 +80,7 @@ static void Display(void)
piglit_report_result(PIGLIT_SUCCESS);
}
static void init()
static void init(void)
{
glViewport(0, 0, Width, Height);
}
......
......@@ -155,7 +155,7 @@ draw_fbo_1d(int x, int y)
}
static void
display()
display(void)
{
GLboolean pass = GL_TRUE;
float red[] = {1,0,0,0};
......
......@@ -179,7 +179,7 @@ static GLboolean test_depth_drawing(int start_x, int start_y, float *expected)
}
static void
display()
display(void)
{
GLboolean pass = GL_TRUE;
int depth;
......
......@@ -197,7 +197,7 @@ static GLboolean test_face_drawing(int start_x, int start_y, int dim,
}
static void
display()
display(void)
{
GLboolean pass = GL_TRUE;
int face, dim;
......
......@@ -177,7 +177,7 @@ test_mipmap_drawing(int start_x, int start_y, int dim)
}
static void
display()
display(void)
{
GLboolean pass = GL_TRUE;
int dim;
......
......@@ -208,7 +208,7 @@ done:
}
static void
display()
display(void)
{
GLboolean pass = GL_TRUE;
......
......@@ -58,7 +58,7 @@ static GLubyte colors[16] = {255, 0, 0, 127,
static void
Init()
Init(void)
{
glewInit();
......@@ -82,7 +82,7 @@ Init()
}
static void
display()
display(void)
{
GLboolean pass = GL_TRUE;
GLfloat red[3]={1.0, 0.0, 0.0};
......
......@@ -79,7 +79,7 @@ static const char *fragShaderText =
static void
compileLinkProg()
compileLinkProg(void)
{
GLint stat;
......@@ -115,7 +115,7 @@ compileLinkProg()
static void
Init()
Init(void)
{
glewInit();
......@@ -142,7 +142,7 @@ Init()
}
static void
display()
display(void)
{
GLboolean pass = GL_TRUE;
GLfloat red[3]={1.0, 0.0, 0.0};
......
......@@ -90,7 +90,7 @@ draw_rect_set(int y)
draw_rect(70, y, 10, 10, .75);
}
static void display()
static void display(void)
{
GLboolean pass = GL_TRUE;
int x, y;
......
......@@ -49,7 +49,7 @@
static GLboolean Automatic = GL_FALSE;
static int win_width, win_height;
static void display()
static void display(void)
{
GLboolean pass = GL_TRUE;
int x, y;
......
......@@ -172,7 +172,7 @@ static struct stipple_line Lines[] = {
}
};
static void test()
static void test(void)
{
int i;
......
......@@ -63,7 +63,7 @@ static PFNGLPROVOKINGVERTEXEXTPROC pglProvokingVertexEXT = 0;
static GLboolean Automatic = GL_FALSE;
static void
Init()
Init(void)
{
piglit_require_extension("GL_EXT_provoking_vertex");
......@@ -89,7 +89,7 @@ Init()
}
static void
display()
display(void)
{
float red[3] = {1.0, 0.0, 0.0};
float blue[3] = {0.0, 0.0, 1.0};
......
......@@ -52,7 +52,7 @@
static GLboolean Automatic = GL_FALSE;
static int win_width, win_height;
static void display()
static void display(void)
{
GLboolean pass = GL_TRUE;
int x, y;
......
......@@ -73,7 +73,7 @@ check_red_box_surrounded_by_green(int x, int y, int w, int h)
return pass;
}
static void display()
static void display(void)
{
GLboolean pass = GL_TRUE;
int dst_x = win_width / 2 + 10, dst_y;
......
......@@ -47,7 +47,7 @@
static GLboolean Automatic = GL_FALSE;
static int win_width, win_height;
static void display()
static void display(void)
{
GLboolean pass = GL_TRUE;
int x, y;
......
......@@ -47,7 +47,7 @@
static GLboolean Automatic = GL_FALSE;
static int win_width, win_height;
static void display()
static void display(void)
{
GLboolean pass = GL_TRUE;
int x, y;
......
......@@ -48,7 +48,7 @@
static GLboolean Automatic = GL_FALSE;
static int win_width, win_height;
static void display()
static void display(void)
{
GLboolean pass = GL_TRUE;
int x, y, i;
......
......@@ -75,7 +75,7 @@ static void probe_cell(const char* testname, int x, int y, const float* expected
/**
* Sanity test whether the texture is rendered correctly at all.
*/
static void test_sanity()
static void test_sanity(void)
{
int x, y;
......@@ -162,12 +162,12 @@ static void do_test_texgen_eye(const char* testname)
}
}
static void test_texgen_eye()
static void test_texgen_eye(void)
{
do_test_texgen_eye("test_texgen_eye");
}
static void test_texgen_eye_fp()
static void test_texgen_eye_fp(void)
{
if (UseFragmentProgram) {
glEnable(GL_FRAGMENT_PROGRAM_ARB);
......@@ -178,7 +178,7 @@ static void test_texgen_eye_fp()
static struct {
const char* name;
void (*function)();
void (*function)(void);
} Tests[] = {
{ "sanity", &test_sanity },
{ "texgen_eye", &test_texgen_eye },
......
......@@ -40,7 +40,7 @@ static GLboolean Automatic = GL_FALSE;
static GLuint vbo;
static void
init()
init(void)
{
glewInit();
......@@ -74,7 +74,7 @@ vbo_write_floats_mapped(const float *varray, size_t count)
}
static void
display()
display(void)
{
GLfloat white[4] = {1.0, 1.0, 1.0, 0.0};
GLboolean pass = GL_TRUE;
......
......@@ -99,7 +99,7 @@ static int verify(float mainr, float maing, float mainb, float subr, float subg,
return 1;
}
static void test()
static void test(void)
{
int success = 1;
......
......@@ -54,7 +54,7 @@ static char *filename;
static int expected_pass;
static void
display()
display(void)
{
GLint prog;
GLint ok;
......
......@@ -78,7 +78,7 @@ display(void)
}
}
static void init()
static void init(void)
{
GLint vs, fs;
......
......@@ -78,7 +78,7 @@ display(void)
}
}
static void init()
static void init(void)
{
GLint vs, fs;
......
......@@ -84,7 +84,7 @@ display(void)
}
}
static void init()
static void init(void)
{
GLint vs, fs;
......
......@@ -88,7 +88,7 @@ display(void)
}
}
static void init()
static void init(void)
{
GLint vs, fs;
......
......@@ -91,7 +91,7 @@ static void key(unsigned char key, int x, int y)
}
static void init()
static void init(void)
{
GLint vs, fs;
......
......@@ -88,7 +88,7 @@ static void key(unsigned char key, int x, int y)
}
static void init()
static void init(void)
{
GLint vs, fs;
......
......@@ -109,7 +109,7 @@ display(void)
}
}
static void init()
static void init(void)
{
GLint vs, fs;
......
......@@ -227,7 +227,7 @@ do_row(int srcy, int srcw, int srch, GLenum target)
}
static void display()
static void display(void)
{
GLboolean pass;
int srcy = 5;
......@@ -270,7 +270,7 @@ static void display()
glutSwapBuffers();
}
static void init()
static void init(void)
{
glMatrixMode( GL_PROJECTION );
glPushMatrix();
......
......@@ -238,7 +238,7 @@ draw_at_size(int size, int x_offset, int y_offset, GLboolean mipmapped)
}
static void display()
static void display(void)
{
int dim;
GLboolean pass = GL_TRUE;
......@@ -293,7 +293,7 @@ static void Key(unsigned char key, int x, int y)
glutPostRedisplay();
}
static void init()
static void init(void)
{
piglit_require_extension("GL_ARB_texture_cube_map");
......
......@@ -104,7 +104,7 @@ static GLboolean check_resulting_mipmaps(int x, int y, const GLfloat *color)
return pass;
}
static void display()
static void display(void)
{
const GLfloat red[4] = {1.0, 0.0, 0.0, 0.0};
const GLfloat blue[4] = {0.0, 0.0, 1.0, 0.0};
......@@ -168,7 +168,7 @@ static void display()
piglit_report_result(pass ? PIGLIT_SUCCESS : PIGLIT_FAILURE);
}
static void init()
static void init(void)
{
piglit_require_extension("GL_SGIS_generate_mipmap");
piglit_require_extension("GL_EXT_texture_compression_s3tc");
......
......@@ -103,7 +103,7 @@ static GLboolean check_resulting_mipmaps(int x, int y, const GLfloat *color)
return pass;
}
static void display()
static void display(void)
{
const GLfloat red[4] = {1.0, 0.0, 0.0, 0.0};
const GLfloat blue[4] = {0.0, 0.0, 1.0, 0.0};
......@@ -172,7 +172,7 @@ static void display()
}
}
static void init()
static void init(void)
{
piglit_require_extension("GL_SGIS_generate_mipmap");
......
......@@ -80,7 +80,7 @@ static GLboolean check_resulting_mipmaps(int x, int y, const GLfloat *color)
return pass;
}
static void display()
static void display(void)
{
GLfloat *data;
const GLfloat red[4] = {1.0, 0.0, 0.0, 0.0};
......@@ -151,7 +151,7 @@ static void display()
}
}
static void init()
static void init(void)
{
piglit_require_extension("GL_SGIS_generate_mipmap");
......
......@@ -28,7 +28,7 @@ static int Automatic = 0;
static int Width = 100, Height = 100;
static GLubyte data[4096]; /* 64*16*4 */
static int test_getteximage()
static int test_getteximage(void)
{
GLubyte compare[4096];
int i;
......@@ -103,7 +103,7 @@ static void Key(unsigned char key, int x, int y)
static void init()
static void init(void)
{
int i;
......
......@@ -36,7 +36,7 @@ static int HaveShadowFuncs = 0;
static GLuint Textures[2]; /* tex0: loaded via TexImage; tex1: loaded via CopyTexImage */
static void CreateRenderedTexture()
static void CreateRenderedTexture(void)
{
glViewport(0, 0, COLS*4, ROWS*4);
glClearColor(0.5, 0.5, 0.0, 0.25);
......@@ -382,7 +382,7 @@ static void Key(unsigned char key, int x, int y)
glutPostRedisplay();
}
static void init()
static void init(void)
{
GLfloat texbuf[4];
......
......@@ -150,7 +150,7 @@ static void Key(unsigned char key, int x, int y)
glutPostRedisplay();
}
static void init()
static void init(void)
{
int i;
int maxtextures;
......
......@@ -302,7 +302,7 @@ create_pixmap(GLenum format)
return glx_pixmap;
}
static void init()
static void init(void)
{
/* Set up projection matrix so we can just draw using window
* coordinates.
......@@ -322,7 +322,7 @@ static void init()
static void
event_loop ()
event_loop(void)
{
for (;;) {
XEvent event;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment