From: Corinna Vinschen Date: Tue, 13 Mar 2007 13:22:00 +0000 (+0000) Subject: * include/cygwin/stat.h (S_TYPEISSHM, S_TYPEISSEM, S_TYPEISSHM): X-Git-Tag: drow-reverse-20070409-branchpoint~40 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=15823b9d62c7aaeb0aecb0d6045a491fe815d36a;p=newlib-cygwin.git * include/cygwin/stat.h (S_TYPEISSHM, S_TYPEISSEM, S_TYPEISSHM): Avoid compiler warnings. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8be1af46d..141b6ddd9 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2007-03-13 Eric Blake + + * include/cygwin/stat.h (S_TYPEISSHM, S_TYPEISSEM, S_TYPEISSHM): + Avoid compiler warnings. + 2007-03-07 Christopher Faylor * signal.cc (handle_sigprocmask): Remove extraneous diff --git a/winsup/cygwin/include/cygwin/stat.h b/winsup/cygwin/include/cygwin/stat.h index 31ddbf91d..49b81fc2d 100644 --- a/winsup/cygwin/include/cygwin/stat.h +++ b/winsup/cygwin/include/cygwin/stat.h @@ -91,9 +91,9 @@ struct stat /* POSIX IPC objects are not implemented as distinct file types, so the below macros have to return 0. The expression is supposed to catch illegal usage with non-stat parameters. */ -#define S_TYPEISMQ(buf) ((buf)->st_mode,0) -#define S_TYPEISSEM(buf) ((buf)->st_mode,0) -#define S_TYPEISSHM(buf) ((buf)->st_mode,0) +#define S_TYPEISMQ(buf) ((void)(buf)->st_mode,0) +#define S_TYPEISSEM(buf) ((void)(buf)->st_mode,0) +#define S_TYPEISSHM(buf) ((void)(buf)->st_mode,0) #ifdef __cplusplus }