tests: silence clang warning
authorEric Blake <eblake@redhat.com>
Mon, 30 Aug 2010 21:40:44 +0000 (15:40 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 30 Aug 2010 21:41:03 +0000 (15:41 -0600)
* tests/test-malloca.c (do_allocation): Avoid dead store.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
tests/test-malloca.c

index 8262bce..45bd20f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-30  Eric Blake  <eblake@redhat.com>
+
+       tests: silence clang warning
+       * tests/test-malloca.c (do_allocation): Avoid dead store.
+
 2010-08-29  Bruno Haible  <bruno@clisp.org>
 
        gettext: Fix recent mistake.
index 14ef3a9..8cf4d0d 100644 (file)
@@ -27,7 +27,7 @@ do_allocation (int n)
 {
   void *ptr = malloca (n);
   freea (ptr);
-  ptr = safe_alloca (n);
+  safe_alloca (n);
 }
 
 void (*func) (int) = do_allocation;