From: Paul Floyd Date: Sat, 27 Apr 2024 11:42:57 +0000 (+0200) Subject: warnings: arm64 unused function in test and missing return for FreeBSD getauxval X-Git-Tag: VALGRIND_3_24_0~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f49fb9776321cd85f641cb416d78132373d3451;p=thirdparty%2Fvalgrind.git warnings: arm64 unused function in test and missing return for FreeBSD getauxval --- diff --git a/none/tests/arm64/integer.c b/none/tests/arm64/integer.c index 210dab0e6..4eb40651c 100644 --- a/none/tests/arm64/integer.c +++ b/none/tests/arm64/integer.c @@ -27,14 +27,6 @@ typedef unsigned char Bool; #define True ((Bool)1) -static inline UChar randUChar ( void ) -{ - static UInt seed = 80021; - seed = 1103515245 * seed + 12345; - return (seed >> 17) & 0xFF; -} - - #define TESTINST1(instruction, RD, carryin) \ { \ ULong out; \ diff --git a/tests/arm64_features.c b/tests/arm64_features.c index 29f33796c..66744cc6d 100644 --- a/tests/arm64_features.c +++ b/tests/arm64_features.c @@ -25,6 +25,7 @@ unsigned long getauxval(unsigned long type) return (unsigned long)auxp->a_un.a_val; } } + return 0UL; } #endif