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 <bdwal...@gmail.com>
> ---
>  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