diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-03-29 16:21:16 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-03-29 16:21:16 +0000 |
commit | 0ecf976175b6f125db5959c8eeeaca2f35299e6e (patch) | |
tree | 47b1114b27e802a746082d21c7847c8d6fb8d99e /gdb/infcall.c | |
parent | 4c462005aa957b25047076fba4d8cec2e16acc11 (diff) | |
download | gdb-0ecf976175b6f125db5959c8eeeaca2f35299e6e.tar.gz |
gdb/
Fix false GCC warning.
* infcall.c (find_function_addr): Initialize funaddr.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r-- | gdb/infcall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index ca23704a714..3f9c8713cf2 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -252,7 +252,8 @@ find_function_addr (struct value *function, struct type **retval_type) struct type *ftype = check_typedef (value_type (function)); struct gdbarch *gdbarch = get_type_arch (ftype); struct type *value_type = NULL; - CORE_ADDR funaddr; + /* Initialize it just to avoid a GCC false warning. */ + CORE_ADDR funaddr = 0; /* If it's a member function, just look at the function part of it. */ |