diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-03-13 13:22:00 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-03-13 13:22:00 +0000 |
commit | 15823b9d62c7aaeb0aecb0d6045a491fe815d36a (patch) | |
tree | da70fa974f229298c3b56a16fb9917ba2a0b78e5 /winsup | |
parent | 99304ce6c4067c1ad11d9c4723580cb09bf1d853 (diff) | |
download | newlib-15823b9d62c7aaeb0aecb0d6045a491fe815d36a.zip newlib-15823b9d62c7aaeb0aecb0d6045a491fe815d36a.tar.gz newlib-15823b9d62c7aaeb0aecb0d6045a491fe815d36a.tar.bz2 |
* include/cygwin/stat.h (S_TYPEISSHM, S_TYPEISSEM, S_TYPEISSHM):
Avoid compiler warnings.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/include/cygwin/stat.h | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8be1af4..141b6dd 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2007-03-13 Eric Blake <ebb9@byu.net> + + * include/cygwin/stat.h (S_TYPEISSHM, S_TYPEISSEM, S_TYPEISSHM): + Avoid compiler warnings. + 2007-03-07 Christopher Faylor <me@cgf.cx> * signal.cc (handle_sigprocmask): Remove extraneous diff --git a/winsup/cygwin/include/cygwin/stat.h b/winsup/cygwin/include/cygwin/stat.h index 31ddbf9..49b81fc 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 } |