]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
warnings: arm64 unused function in test and missing return for FreeBSD getauxval
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 27 Apr 2024 11:42:57 +0000 (13:42 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 27 Apr 2024 11:42:57 +0000 (13:42 +0200)
none/tests/arm64/integer.c
tests/arm64_features.c

index 210dab0e6aa5412929f4cc7e5a602e0396d947fa..4eb40651c4a7fcba6378da7f0e90eadc3b808710 100644 (file)
@@ -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; \
index 29f33796c656ea9124f99420722fc89b83b2f7a4..66744cc6d4a1cd2e3807f10fd7c4843055b96757 100644 (file)
@@ -25,6 +25,7 @@ unsigned long getauxval(unsigned long type)
          return (unsigned long)auxp->a_un.a_val;
       }
    }
+   return 0UL;
 }
 #endif