From: Eric Blake Date: Mon, 28 May 2007 15:10:23 +0000 (+0000) Subject: * lib/allocsa.h (safe_alloca): Avoid compiler warning. X-Git-Tag: cvs-readonly~331 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=8ad1cc5a9cd83e5269203bfbbf9581e93da567b7;p=gnulib.git * lib/allocsa.h (safe_alloca): Avoid compiler warning. --- diff --git a/ChangeLog b/ChangeLog index 53c446370..4b4bfcf6a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-05-28 Eric Blake + + * lib/allocsa.h (safe_alloca): Avoid compiler warning. + 2007-05-28 Bruno Haible * modules/fseek-tests: New file. diff --git a/lib/allocsa.h b/lib/allocsa.h index 6592b359c..ffee917ee 100644 --- a/lib/allocsa.h +++ b/lib/allocsa.h @@ -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