|
From: Bart V. A. <bva...@so...> - 2021-02-28 05:27:09
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=ae15c01f72b9dfffd435121bf87b20bfa618e27f commit ae15c01f72b9dfffd435121bf87b20bfa618e27f Author: Bart Van Assche <bva...@ac...> Date: Sat Feb 27 20:35:51 2021 -0800 none/tests/ifunc.c: Fix a compiler warning Fix the following compiler warning: ifunc.c:9:15: warning: 'ifunc' resolver for 'test' should return 'void (*)(int)' [-Wattribute-alias=] 9 | static void (*resolve_test(void))(void) | ^~~~~~~~~~~~ Diff: --- none/tests/ifunc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/none/tests/ifunc.c b/none/tests/ifunc.c index 523d923a46..43a48d2a06 100644 --- a/none/tests/ifunc.c +++ b/none/tests/ifunc.c @@ -6,9 +6,9 @@ static void mytest(int d) printf("%d\n", d); } -static void (*resolve_test(void))(void) +static void (*resolve_test(void))(int) { - return (void (*)(void))&mytest; + return mytest; } void test(int d) |