[Replicant] [libsamsung-ipc] [PATCH 1/3] tools: nv_data-imei: fix unused-label
Denis 'GNUtoo' Carikli
GNUtoo at cyberdimension.org
Sun Nov 29 01:59:19 UTC 2020
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);
--
2.29.2
More information about the Replicant
mailing list