diff options
author | Matthew Waters <ystreet00@gmail.com> | 2014-03-16 15:06:37 +0100 |
---|---|---|
committer | Matthew Waters <ystreet00@gmail.com> | 2014-03-16 15:17:44 +0100 |
commit | 870503dc6bb5f8ea59a2605ded81e5c28ffde58c (patch) | |
tree | c888809a446597dcdfd38d7c21d5fbee9b5047d9 /tests/check | |
parent | 4bdf5f336a18d0fe7dd4d8311c91e6260e7dfa5d (diff) | |
download | gstreamer-plugins-bad-870503dc6bb5f8ea59a2605ded81e5c28ffde58c.tar.gz |
gl: silence all the compiler warnings
Diffstat (limited to 'tests/check')
-rw-r--r-- | tests/check/libs/gstglcontext.c | 20 | ||||
-rw-r--r-- | tests/check/libs/gstglmemory.c | 6 | ||||
-rw-r--r-- | tests/check/libs/gstglupload.c | 10 |
3 files changed, 18 insertions, 18 deletions
diff --git a/tests/check/libs/gstglcontext.c b/tests/check/libs/gstglcontext.c index ce106535c..5a094fdb7 100644 --- a/tests/check/libs/gstglcontext.c +++ b/tests/check/libs/gstglcontext.c @@ -53,13 +53,13 @@ static const gchar *fragment_shader_str_gles2 = static GstGLDisplay *display; -void +static void setup (void) { display = gst_gl_display_new (); } -void +static void teardown (void) { gst_object_unref (display); @@ -74,7 +74,7 @@ static GLint shader_attr_position_loc; static GLint shader_attr_texture_loc; #endif -void +static void init (gpointer data) { GstGLContext *context = data; @@ -109,7 +109,7 @@ init (gpointer data) #endif } -void +static void deinit (gpointer data) { GstGLContext *context = data; @@ -122,7 +122,7 @@ deinit (gpointer data) #endif } -void +static void clear_tex (gpointer data) { GstGLContext *context = data; @@ -137,14 +137,14 @@ clear_tex (gpointer data) b = b > 1.0 ? 0.0 : b + 0.015; } -void +static void draw_tex (gpointer data) { gst_gl_framebuffer_use_v2 (fbo, 320, 240, fbo_id, rbo, tex, (GLCB_V2) clear_tex, data); } -void +static void draw_render (gpointer data) { GstGLContext *context = data; @@ -343,8 +343,8 @@ GST_START_TEST (test_wrapped_context) GST_END_TEST; -Suite * -gst_gl_memory_suite (void) +static Suite * +gst_gl_context_suite (void) { Suite *s = suite_create ("GstGLContext"); TCase *tc_chain = tcase_create ("general"); @@ -357,4 +357,4 @@ gst_gl_memory_suite (void) return s; } -GST_CHECK_MAIN (gst_gl_memory); +GST_CHECK_MAIN (gst_gl_context); diff --git a/tests/check/libs/gstglmemory.c b/tests/check/libs/gstglmemory.c index 0267d7ae0..e47fe5ed5 100644 --- a/tests/check/libs/gstglmemory.c +++ b/tests/check/libs/gstglmemory.c @@ -33,7 +33,7 @@ static GstGLDisplay *display; static GstGLContext *context; -void +static void setup (void) { display = gst_gl_display_new (); @@ -42,7 +42,7 @@ setup (void) gst_gl_memory_init (); } -void +static void teardown (void) { gst_object_unref (display); @@ -115,7 +115,7 @@ GST_START_TEST (test_basic) GST_END_TEST; -Suite * +static Suite * gst_gl_memory_suite (void) { Suite *s = suite_create ("GstGLMemory"); diff --git a/tests/check/libs/gstglupload.c b/tests/check/libs/gstglupload.c index b33da6298..cd3a89ff5 100644 --- a/tests/check/libs/gstglupload.c +++ b/tests/check/libs/gstglupload.c @@ -85,7 +85,7 @@ static gchar rgba_data[] = RED, GREEN, BLUE, RED, GREEN, BLUE, RED, GREEN, BLUE, RED }; -void +static void setup (void) { GError *error = NULL; @@ -102,7 +102,7 @@ setup (void) upload = gst_gl_upload_new (context); } -void +static void teardown (void) { GLuint error = context->gl_vtable->GetError (); @@ -115,7 +115,7 @@ teardown (void) gst_object_unref (display); } -void +static void init (gpointer data) { #if GST_GL_HAVE_GLES2 @@ -139,7 +139,7 @@ init (gpointer data) #endif } -void +static void draw_render (gpointer data) { GstGLContext *context = data; @@ -403,7 +403,7 @@ GST_START_TEST (test_upload_meta_producer) GST_END_TEST; -Suite * +static Suite * gst_gl_upload_suite (void) { Suite *s = suite_create ("GstGLUpload"); |