diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2018-05-29 14:18:43 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-05-29 14:18:43 +1000 |
commit | f708f67a4d0a2465376b9b7e2a84b71e195172e4 (patch) | |
tree | 13441fde988d306cf1724a063abad9325b08e3af | |
parent | 55ef0db841a0792f5432753f0efdb9ecb07d6231 (diff) | |
download | skiboot-f708f67a4d0a2465376b9b7e2a84b71e195172e4.zip skiboot-f708f67a4d0a2465376b9b7e2a84b71e195172e4.tar.gz skiboot-f708f67a4d0a2465376b9b7e2a84b71e195172e4.tar.bz2 |
hdata/tests/stubs.c: fix GCC8 warning
hdata/test/stubs.c:112:11: error: ‘lock_caller’ alias between functions of incompatible types ‘void(void)’ and ‘_Bool(void)’ [-Werror=attribute-alias]
NOOP_STUB(lock_caller);
^~~~~~~~~~~
We fix it by giving the correct prototype to our stub
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | hdata/test/stubs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hdata/test/stubs.c b/hdata/test/stubs.c index 92098bf..5922570 100644 --- a/hdata/test/stubs.c +++ b/hdata/test/stubs.c @@ -103,9 +103,9 @@ static bool true_stub(void) { return true; } static bool false_stub(void) { return false; } #define TRUE_STUB(fnname) \ - void fnname(void) __attribute__((weak, alias ("true_stub"))) + bool fnname(void) __attribute__((weak, alias ("true_stub"))) #define FALSE_STUB(fnname) \ - void fnname(void) __attribute__((weak, alias ("false_stub"))) + bool fnname(void) __attribute__((weak, alias ("false_stub"))) #define NOOP_STUB FALSE_STUB TRUE_STUB(lock_held_by_me); |