From: Paul Floyd Date: Fri, 31 Mar 2023 11:17:10 +0000 (+0200) Subject: Regtest: fix a couple of unused variable warnings X-Git-Tag: VALGRIND_3_21_0~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37edf8fbda98b408a82d9476c9c7582d3e3dc6f7;p=thirdparty%2Fvalgrind.git Regtest: fix a couple of unused variable warnings Copy & paste leftovers --- diff --git a/memcheck/tests/linux/aligned_alloc.c b/memcheck/tests/linux/aligned_alloc.c index 6585580d8b..efe4672efc 100644 --- a/memcheck/tests/linux/aligned_alloc.c +++ b/memcheck/tests/linux/aligned_alloc.c @@ -7,7 +7,7 @@ int main(void) { #if defined(MUSL_LIBC) char* p = NULL; - int res; + // zero size p = aligned_alloc(0, 8); diff --git a/memcheck/tests/solaris/aligned_alloc.c b/memcheck/tests/solaris/aligned_alloc.c index 8136062234..c8e82e276f 100644 --- a/memcheck/tests/solaris/aligned_alloc.c +++ b/memcheck/tests/solaris/aligned_alloc.c @@ -5,7 +5,7 @@ int main(void) { char* p = NULL; - int res; + // zero size p = aligned_alloc(0, 8);