From ae40f3f69390fc1847ebabcdcbd3eb9db3422126 Mon Sep 17 00:00:00 2001 From: Serge Voilokov Date: Fri, 19 Jun 2015 08:48:06 -0400 Subject: [PATCH 1/2] fix implicit warnings. --- impl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/impl.h b/impl.h index 5aeb3c7..7703b5b 100644 --- a/impl.h +++ b/impl.h @@ -75,6 +75,7 @@ #endif #include #include +#include struct gimli_mapped_object; typedef struct gimli_mapped_object *gimli_mapped_object_t; From 1b7edfb0440d6b2634f090e30342ca94b8a8ae42 Mon Sep 17 00:00:00 2001 From: Serge Voilokov Date: Fri, 19 Jun 2015 08:52:57 -0400 Subject: [PATCH 2/2] fix return value. --- print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/print.c b/print.c index 8ae0c07..2a4c012 100644 --- a/print.c +++ b/print.c @@ -558,11 +558,11 @@ static int print_var(struct print_data *data, gimli_type_t t, const char *varnam snprintf(addrkey, sizeof(addrkey), "%p:%" PRIx64, t, addr); if (gimli_hash_find(derefd, addrkey, &dummy)) { printf(" " PTRFMT " [deref'd above]\n", addr); - return; + return GIMLI_ITER_CONT; } if (!gimli_hash_insert(derefd, addrkey, NULL)) { printf(" " PTRFMT " \n", addr); - return; + return GIMLI_ITER_ERR; } printf(" " PTRFMT " = {\n", addr);