From afaf0a0a0c35d32300a6ecb073014200bbe15ba5 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 16 Nov 2006 11:26:22 +0000 Subject: [PATCH] * Fix a compilation warning by pretending to use seterrno()'s argument even when it isn't. --- common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.h b/common.h index 84d817c..b8f5c57 100644 --- a/common.h +++ b/common.h @@ -39,7 +39,7 @@ typedef unsigned long int uintptr_t; static inline void seterrno(int e) { errno = e; } static inline int geterrno(void) { return errno; } #else -# define seterrno(x) do {} while(0) +# define seterrno(x) do { (void)(x); } while(0) # define geterrno(x) 0 #endif