فهرست منبع

test: Fix compiler warnings about incompatible pointer type

Christoph Hohmann 9 سال پیش
والد
کامیت
08dd7ecc37
3فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 2 1
      test/test-input/test-filter.c
  2. 2 1
      test/test-input/test-random.c
  3. 2 1
      test/test-input/test-sinewave.c

+ 2 - 1
test/test-input/test-filter.c

@@ -5,8 +5,9 @@ struct test_filter {
 	gs_effect_t *whatever;
 	gs_effect_t *whatever;
 };
 };
 
 
-static const char *filter_getname(void)
+static const char *filter_getname(void *unused)
 {
 {
+	UNUSED_PARAMETER(unused);
 	return "Test";
 	return "Test";
 }
 }
 
 

+ 2 - 1
test/test-input/test-random.c

@@ -10,8 +10,9 @@ struct random_tex {
 	bool         initialized;
 	bool         initialized;
 };
 };
 
 
-static const char *random_getname(void)
+static const char *random_getname(void *unused)
 {
 {
+	UNUSED_PARAMETER(unused);
 	return "20x20 Random Pixel Texture Source (Test)";
 	return "20x20 Random Pixel Texture Source (Test)";
 }
 }
 
 

+ 2 - 1
test/test-input/test-sinewave.c

@@ -58,8 +58,9 @@ static void *sinewave_thread(void *pdata)
 
 
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 
 
-static const char *sinewave_getname(void)
+static const char *sinewave_getname(void *unused)
 {
 {
+	UNUSED_PARAMETER(unused);
 	return "Sinewave Sound Source (Test)";
 	return "Sinewave Sound Source (Test)";
 }
 }