OSDN Git Service

* include/cygwin/stat.h (S_TYPEISSHM, S_TYPEISSEM, S_TYPEISSHM):
authorcorinna <corinna>
Tue, 13 Mar 2007 13:21:59 +0000 (13:21 +0000)
committercorinna <corinna>
Tue, 13 Mar 2007 13:21:59 +0000 (13:21 +0000)
Avoid compiler warnings.

winsup/cygwin/ChangeLog
winsup/cygwin/include/cygwin/stat.h

index 8be1af4..141b6dd 100644 (file)
@@ -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
index 31ddbf9..49b81fc 100644 (file)
@@ -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
 }