* lib/allocsa.h (safe_alloca): Avoid compiler warning.
authorEric Blake <ebb9@byu.net>
Mon, 28 May 2007 15:10:23 +0000 (15:10 +0000)
committerEric Blake <ebb9@byu.net>
Mon, 28 May 2007 15:10:23 +0000 (15:10 +0000)
ChangeLog
lib/allocsa.h

index 53c446370f01b3d167db113f191cfdb2aea0990d..4b4bfcf6ad0c7bfa840391163079c8e181436145 100644 (file)
--- 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.
index 6592b359c0d1e54fa67796034edc89c59b3b95ef..ffee917eea9381a4618daf64ac7e564ebfb0b026 100644 (file)
@@ -46,7 +46,7 @@ extern "C" {
    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