summaryrefslogtreecommitdiff
path: root/tests/glslparsertest
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2013-09-20 12:53:58 -0700
committerChad Versace <chad.versace@linux.intel.com>2013-09-20 18:51:22 -0700
commit50e5259fdf3cafa92f412301df1e5f81d9d31db9 (patch)
tree79a678522d74a4539d362ba17e731b03a0020aba /tests/glslparsertest
parentf0776b28bf6b7245673560705951dd1ded9e9ab1 (diff)
glslparsertest: Fix implicit-function-declaration warning
Fix this warning: glslparsertest.c:42:2: warning: implicit declaration of function ‘process_options’ [-Wimplicit-function-declaration] argc = process_options(argc, argv); ^ Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/glslparsertest')
-rw-r--r--tests/glslparsertest/glslparsertest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/glslparsertest/glslparsertest.c b/tests/glslparsertest/glslparsertest.c
index 170dbad13..00e4fcc4e 100644
--- a/tests/glslparsertest/glslparsertest.c
+++ b/tests/glslparsertest/glslparsertest.c
@@ -36,6 +36,7 @@
#include "piglit-util-gl-common.h"
static unsigned parse_glsl_version_number(const char *str);
+static int process_options(int argc, char **argv);
PIGLIT_GL_TEST_CONFIG_BEGIN
@@ -318,7 +319,8 @@ static void usage(char *name)
* Process any options and remove them from the argv array. Return
* the new argc.
*/
-int process_options(int argc, char **argv)
+static int
+process_options(int argc, char **argv)
{
int i = 1;
int new_argc = 1;