[Piglit] [PATCH 3/3] piglit: put 'void' in piglit_is_gles() and piglit_get_gl_version() decls
Brian Paul
brianp at vmware.com
Wed Oct 3 07:27:40 PDT 2012
---
tests/util/piglit-util-gl-common.c | 4 ++--
tests/util/piglit-util-gl-common.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/util/piglit-util-gl-common.c b/tests/util/piglit-util-gl-common.c
index a447a0f..62b5312 100644
--- a/tests/util/piglit-util-gl-common.c
+++ b/tests/util/piglit-util-gl-common.c
@@ -34,13 +34,13 @@
*/
static const char **gl_extensions = NULL;
-bool piglit_is_gles()
+bool piglit_is_gles(void)
{
const char *version_string = (const char *) glGetString(GL_VERSION);
return strncmp("OpenGL ES ", version_string, 10) == 0;
}
-int piglit_get_gl_version()
+int piglit_get_gl_version(void)
{
const char *version_string = (const char *) glGetString(GL_VERSION);
int scanf_count;
diff --git a/tests/util/piglit-util-gl-common.h b/tests/util/piglit-util-gl-common.h
index 3380109..4c89534 100644
--- a/tests/util/piglit-util-gl-common.h
+++ b/tests/util/piglit-util-gl-common.h
@@ -46,7 +46,7 @@ extern const unsigned int fdo_bitmap_height;
/**
* Determine if the API is OpenGL ES.
*/
-bool piglit_is_gles();
+bool piglit_is_gles(void);
/**
* \brief Get version of OpenGL or OpenGL ES API.
@@ -54,7 +54,7 @@ bool piglit_is_gles();
* Returned version is multiplied by 10 to make it an integer. So for
* example, if the GL version is 2.1, the return value is 21.
*/
-int piglit_get_gl_version();
+int piglit_get_gl_version(void);
/**
* \precondition name is not null
--
1.7.3.4
More information about the Piglit
mailing list