changeset 13610:8cea75815700

tests: silence clang warning * tests/test-malloca.c (do_allocation): Avoid dead store. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Mon, 30 Aug 2010 15:40:44 -0600
parents 30ae1305c6da
children 06bf5f91b9df
files ChangeLog tests/test-malloca.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/tests/test-malloca.c
+++ b/tests/test-malloca.c
@@ -27,7 +27,7 @@
 {
   void *ptr = malloca (n);
   freea (ptr);
-  ptr = safe_alloca (n);
+  safe_alloca (n);
 }
 
 void (*func) (int) = do_allocation;