[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tempname: remove warnings about unused parameter 'flags'
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] tempname: remove warnings about unused parameter 'flags' |
Date: |
Tue, 14 Apr 2015 11:51:56 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 06/04/15 22:04, Ángel González wrote:
> * lib/tempname.c (try_dir, try_nocreate) Tag 'flags' parameter as unused.
> ---
> lib/tempname.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/tempname.c b/lib/tempname.c
> index 8e6d26c..befb38a 100644
> --- a/lib/tempname.c
> +++ b/lib/tempname.c
> @@ -269,13 +269,13 @@ try_file (char *tmpl, void *flags)
> }
>
> static int
> -try_dir (char *tmpl, void *flags)
> +try_dir (char *tmpl, _GL_UNUSED void *flags)
> {
> return __mkdir (tmpl, S_IRUSR | S_IWUSR | S_IXUSR);
> }
>
> static int
> -try_nocreate (char *tmpl, void *flags)
> +try_nocreate (char *tmpl, _GL_UNUSED void *flags)
> {
> struct_stat64 st;
>
>
I adjusted to put _GL_UNUSED after the parameter for consistency and pushed.
thanks!
Pádraig