Mercurial > hg > octave-nkf > gnulib-hg
changeset 10724:53aa61d28ac0
* lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Fri, 24 Oct 2008 15:28:10 +0200 |
parents | 607e3c5b1510 |
children | 3cb49412f9e3 |
files | ChangeLog lib/mkdir.c |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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>
--- a/lib/mkdir.c +++ b/lib/mkdir.c @@ -40,12 +40,15 @@ 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;