From 8ad1cc5a9cd83e5269203bfbbf9581e93da567b7 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 28 May 2007 15:10:23 +0000 Subject: [PATCH] * lib/allocsa.h (safe_alloca): Avoid compiler warning. --- ChangeLog | 4 ++++ lib/allocsa.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 53c446370f..4b4bfcf6ad 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 6592b359c0..ffee917eea 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 -- 2.30.2