]> sourceware.org Git - newlib-cygwin.git/commitdiff
* include/cygwin/stat.h (S_TYPEISSHM, S_TYPEISSEM, S_TYPEISSHM):
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 13 Mar 2007 13:22:00 +0000 (13:22 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 13 Mar 2007 13:22:00 +0000 (13:22 +0000)
Avoid compiler warnings.

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

index 8be1af46db32cbc4918c17ac86e3707d6cf2b12f..141b6ddd9dd105c188926d7665d0b4750774a095 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 31ddbf91d1fe92bc079d02c70ba09dcfa0f06ced..49b81fc2d8fc0756ac40d7e118c51c4857de56c5 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
 }
This page took 0.037748 seconds and 5 git commands to generate.