bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] lib/rename.c: rpl_rename - mark the out label as potentially


From: Pádraig Brady
Subject: Re: [PATCH] lib/rename.c: rpl_rename - mark the out label as potentially unused
Date: Mon, 02 Jun 2014 20:04:26 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 06/02/2014 07:50 PM, Ben Walton wrote:
>   * Avoid possible compiler warnings/errors by marking the out label
>     as potentially unused.
> 
> Signed-off-by: Ben Walton <address@hidden>
> ---
>  lib/rename.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/rename.c b/lib/rename.c
> index 2116028..55130d8 100644
> --- a/lib/rename.c
> +++ b/lib/rename.c
> @@ -462,7 +462,9 @@ rpl_rename (char const *src, char const *dst)
>  
>    ret_val = rename (src_temp, dst_temp);
>    rename_errno = errno;
> - out:
> +
> + out: _GL_UNUSED_LABEL
> +
>    if (src_temp != src)
>      free (src_temp);
>    if (dst_temp != dst)

I pushed that with a trailing ; needed for C++,
along with a comment stating the need for the trailing ;

thanks,
Pádraig.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]