summaryrefslogtreecommitdiffstats
path: root/yamdrv
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-06-07 00:58:42 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-07 00:58:42 +0200
commit10233ed2e04c1ac21be6335203e7c027a3df8c87 (patch)
treedf1557b19444e3f4bdfcd0507fea6065e7348b63 /yamdrv
parentc8ea06de1c3846b17956e920ee024ed4e6002110 (diff)
yamdrv/mcs2h.c: Fix warning about set but unused variable.
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 <ralf@linux-mips.org>
Diffstat (limited to 'yamdrv')
-rw-r--r--yamdrv/mcs2h.c3
1 files changed, 1 insertions, 2 deletions
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)