From 10233ed2e04c1ac21be6335203e7c027a3df8c87 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 7 Jun 2015 00:58:42 +0200 Subject: yamdrv/mcs2h.c: Fix warning about set but unused variable. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -Wall -MT mcs2h.o -MD -MP -MF .deps/mcs2h.Tpo -c -o mcs2h.o mcs2h.c mcs2h.c: In function ‘main’: mcs2h.c:48:10: warning: variable ‘add’ set but not used [-Wunused-but-set-variable] int nb, add, type, i; ^ Signed-off-by: Ralf Baechle --- yamdrv/mcs2h.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'yamdrv/mcs2h.c') diff --git a/yamdrv/mcs2h.c b/yamdrv/mcs2h.c index bf1ae72..bf9d0e2 100644 --- a/yamdrv/mcs2h.c +++ b/yamdrv/mcs2h.c @@ -45,7 +45,7 @@ int in4hex(char *ptr) int main(int ac, char *av[]) { - int nb, add, type, i; + int nb, type, i; int first = 1; time_t temps; FILE *fptr; @@ -82,7 +82,6 @@ int main(int ac, char *av[]) while (fgets(buf, sizeof(buf), fptr)) { nb = in2hex(buf+1); - add = in4hex(buf+3); type = in2hex(buf+7); if (type != 0) -- cgit v1.2.3