changeset 8887:42187fcef367

* lib/allocsa.h (safe_alloca): Avoid compiler warning.
author Eric Blake <ebb9@byu.net>
date Mon, 28 May 2007 15:10:23 +0000
parents b828a58c6933
children 6f9096a04fe8
files ChangeLog lib/allocsa.h
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-05-28  Eric Blake  <ebb9@byu.net>
+
+	* lib/allocsa.h (safe_alloca): Avoid compiler warning.
+
 2007-05-28  Bruno Haible  <bruno@clisp.org>
 
 	* modules/fseek-tests: New file.
--- a/lib/allocsa.h
+++ b/lib/allocsa.h
@@ -46,7 +46,7 @@
    This must be a macro, not an inline function.  */
 # define safe_alloca(N) ((N) < 4032 ? alloca (N) : NULL)
 #else
-# define safe_alloca(N) ((N), NULL)
+# define safe_alloca(N) ((void) (N), NULL)
 #endif
 
 /* allocsa(N) is a safe variant of alloca(N).  It allocates N bytes of