]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Make pointer in tst-realloc volatile also
authorStan Shebs <stanshebs@google.com>
Fri, 8 Jun 2018 20:47:29 +0000 (13:47 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:23:11 +0000 (17:23 -0700)
malloc/tst-realloc.c

index 1e48ad494cf9a118709b1873573d5e489f9ad70b..33ee15b9286dd9893e70035a5c77c791d8988608 100644 (file)
@@ -33,7 +33,7 @@ merror (const char *msg)
 static int
 do_test (void)
 {
-  void *p;
+  void *volatile p;
   unsigned char *c;
   int save, i, ok;