Skip to content

Commit 08dd7ec

Browse files
committed
test: Fix compiler warnings about incompatible pointer type
1 parent 8fc93f6 commit 08dd7ec

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

test/test-input/test-filter.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ struct test_filter {
55
gs_effect_t *whatever;
66
};
77

8-
static const char *filter_getname(void)
8+
static const char *filter_getname(void *unused)
99
{
10+
UNUSED_PARAMETER(unused);
1011
return "Test";
1112
}
1213

test/test-input/test-random.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ struct random_tex {
1010
bool initialized;
1111
};
1212

13-
static const char *random_getname(void)
13+
static const char *random_getname(void *unused)
1414
{
15+
UNUSED_PARAMETER(unused);
1516
return "20x20 Random Pixel Texture Source (Test)";
1617
}
1718

test/test-input/test-sinewave.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ static void *sinewave_thread(void *pdata)
5858

5959
/* ------------------------------------------------------------------------- */
6060

61-
static const char *sinewave_getname(void)
61+
static const char *sinewave_getname(void *unused)
6262
{
63+
UNUSED_PARAMETER(unused);
6364
return "Sinewave Sound Source (Test)";
6465
}
6566

0 commit comments

Comments
 (0)