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 8262bce4052438331d618ca5597999fdd341367e..45bd20ff0f82d93acaa708745c2aa0c638d70e07 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 14ef3a9d9e3ff131b8f76014d1916b04072d4a82..8cf4d0da0b3bf8b75743b81a48d46c7ff79de786 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;