* lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
authorJim Meyering <meyering@redhat.com>
Fri, 24 Oct 2008 13:28:10 +0000 (15:28 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 26 Oct 2008 20:23:38 +0000 (21:23 +0100)
ChangeLog
lib/mkdir.c

index cdceed7..a5ca45a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-26  Jim Meyering  <meyering@redhat.com>
+
+       * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
+
 2008-10-26  Simon Josefsson  <simon@josefsson.org>
             Bruno Haible  <bruno@clisp.org>
 
index 8073dc8..5f4d235 100644 (file)
    alias mkdir), only in the nonstandard io.h.  */
 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
 # define mkdir(name,mode) _mkdir (name)
+# define maybe_unused _UNUSED_PARAMETER_
+#else
+# define maybe_unused /* empty */
 #endif
 
 /* This function is required at least for NetBSD 1.5.2.  */
 
 int
-rpl_mkdir (char const *dir, mode_t mode)
+rpl_mkdir (char const *dir, mode_t mode maybe_unused)
 {
   int ret_val;
   char *tmp_dir;