This trivial patch will solve the problem of unused variable warning
if building the Parallel Port driver under FreeBSD. Tested under
FreeBSD 8.0-RELEASE-p2.

Signed-off-by: Xiaofan Chen <[email protected]>

diff --git a/src/jtag/drivers/parport.c b/src/jtag/drivers/parport.c
index a38ccfd..dbc7fbe 100644
--- a/src/jtag/drivers/parport.c
+++ b/src/jtag/drivers/parport.c
@@ -265,7 +265,7 @@ static int parport_init(void)
        struct cable *cur_cable;
 #if PARPORT_USE_PPDEV == 1
        char buffer[256];
-       int i = 0;
+       /* int i = 0; */
 #endif

        cur_cable = cables;
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to