[PATCH 0/1] MR6363: winedump: Remove unused variable.
From: Huw Davies <huw(a)codeweavers.com> --- tools/winedump/search.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/winedump/search.c b/tools/winedump/search.c index 21f9986d0a6..632d5de7aae 100644 --- a/tools/winedump/search.c +++ b/tools/winedump/search.c @@ -237,7 +237,6 @@ static BOOL symbol_from_prototype (parsed_symbol *sym, const char *proto) static const char *get_type (parsed_symbol *sym, const char *proto, int arg) { BOOL is_const, is_volatile, is_struct, is_signed, is_unsigned; - int ptrs = 0; const char *iter, *base_type, *catch_unsigned, *proto_str; char dest_type, *type_str; @@ -284,9 +283,7 @@ static const char *get_type (parsed_symbol *sym, const char *proto, int arg) /* FIXME: skip const/volatile here too */ for (proto_str = iter; *proto_str; proto_str++) - if (*proto_str == '*') - ptrs++; - else if (*proto_str != ' ') + if (*proto_str != '*' && *proto_str != ' ') break; if (!*proto_str) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6363
participants (2)
-
Huw Davies -
Huw Davies (@huw)