diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-03-29 16:21:24 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-03-29 16:21:24 +0000 |
commit | 09b587083c5b3e18b5b9b86ba7b4cf9839658d0d (patch) | |
tree | ca58e121cfa0455570a0ed2d17489230d75d4405 /gdb/infcall.c | |
parent | 6023c606989346efde39c5e336202df13e97957e (diff) | |
download | gdb-09b587083c5b3e18b5b9b86ba7b4cf9839658d0d.zip gdb-09b587083c5b3e18b5b9b86ba7b4cf9839658d0d.tar.gz gdb-09b587083c5b3e18b5b9b86ba7b4cf9839658d0d.tar.bz2 |
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 ca23704..3f9c871 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. */ |