about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2018-06-08 13:47:29 -0700
committerStan Shebs <stanshebs@google.com>2019-04-30 18:18:24 -0700
commit583e97d1968a487838166aa5638f6ebd7206fff9 (patch)
tree5084e1ebd780792e3499f190146b3b305bcda24e
parent2b89ce53dc160974be2a872d0a52950e2ebe5a71 (diff)
downloadglibc-583e97d1968a487838166aa5638f6ebd7206fff9.tar.gz
glibc-583e97d1968a487838166aa5638f6ebd7206fff9.tar.xz
glibc-583e97d1968a487838166aa5638f6ebd7206fff9.zip
Make pointer in tst-realloc volatile also
-rw-r--r--malloc/tst-realloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/tst-realloc.c b/malloc/tst-realloc.c
index 5643c3ae16..071d9dc71c 100644
--- a/malloc/tst-realloc.c
+++ b/malloc/tst-realloc.c
@@ -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;