[Replicant] [libsamsung-ipc] [PATCH 1/3] tools: nv_data-imei: fix unused-label

Joonas Kylmälä joonas.kylmala at iki.fi
Sun Nov 29 12:25:52 UTC 2020


Reviewed-by: Joonas Kylmälä <joonas.kylmala at iki.fi>

Denis 'GNUtoo' Carikli:
> Without that fix, when building libsamsung-ipc under GNU/Linux
> with the "-Werror -W -Wall -Wunused -Wunused-function" CFLAGS,
> GCC and the autotools build system, we have:
>     nv_data-imei.c: In function ‘bruteforce_imei_offset’:
>     nv_data-imei.c:695:1: error: label ‘complete’ defined
>     but not used [-Werror=unused-label]
>      complete:
>      ^~~~~~~~
> 
> Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
> ---
>  tools/nv_data-imei.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/tools/nv_data-imei.c b/tools/nv_data-imei.c
> index 8f4986a..97ed66a 100644
> --- a/tools/nv_data-imei.c
> +++ b/tools/nv_data-imei.c
> @@ -692,7 +692,6 @@ int bruteforce_imei_offset(char *nv_data_path, struct imei *given_imei)
>  	}
>  
>  error:
> -complete:
>  	if (buffer)
>  		free(buffer);
>  
> 


More information about the Replicant mailing list