mips is not using the same count to handle symbols in read_elf()
and it ends up not using the count variable. As we're building with
-Werror, the unused variable warning is producing a build error.


Signed-off-by: Arnaud Patard <[email protected]>
---
 ltrace-elf.c |    2    2 +     0 -     0 !
 1 file changed, 2 insertions(+)

Index: ltrace/ltrace-elf.c
===================================================================
--- ltrace.orig/ltrace-elf.c    2011-01-20 12:38:04.000000000 +0100
+++ ltrace/ltrace-elf.c 2011-01-20 12:38:12.000000000 +0100
@@ -611,7 +611,9 @@ read_elf(Process *proc) {
        struct opt_x_t *xptr;
        struct library_symbol **lib_tail = NULL;
        int exit_out = 0;
+#ifndef __mips__
        int count = 0;
+#endif
 
        debug(DEBUG_FUNCTION, "read_elf(file=%s)", proc->filename);
 



_______________________________________________
Ltrace-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/ltrace-devel

Reply via email to