diff options
author | Tom Tromey <tromey@adacore.com> | 2023-02-17 10:24:16 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-02-17 10:24:16 -0700 |
commit | fe0431855aba332f12ef80b0af65d5a6653f9c96 (patch) | |
tree | 9c93c37fd1d80b3590b03469f2a36fd6c09d67ca /gdb | |
parent | ab3fdfe6e4805eff45ec4d701d0cd6511d9c3690 (diff) | |
download | gdb-fe0431855aba332f12ef80b0af65d5a6653f9c96.zip gdb-fe0431855aba332f12ef80b0af65d5a6653f9c96.tar.gz gdb-fe0431855aba332f12ef80b0af65d5a6653f9c96.tar.bz2 |
Remove two unnecessary returns in ada-lang.c
I found a couple of spots in ada-lang.c where a return follows a call
to error. These are unnecessary because error never returns.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ada-lang.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index eb81d73..75c5f5e 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -11731,11 +11731,8 @@ ada_has_this_exception_support (const struct exception_support_info *einfo) /* Make sure that the symbol we found corresponds to a function. */ if (sym->aclass () != LOC_BLOCK) - { - error (_("Symbol \"%s\" is not a function (class = %d)"), - sym->linkage_name (), sym->aclass ()); - return 0; - } + error (_("Symbol \"%s\" is not a function (class = %d)"), + sym->linkage_name (), sym->aclass ()); sym = standard_lookup (einfo->catch_handlers_sym, NULL, VAR_DOMAIN); if (sym == NULL) @@ -11754,11 +11751,8 @@ ada_has_this_exception_support (const struct exception_support_info *einfo) /* Make sure that the symbol we found corresponds to a function. */ if (sym->aclass () != LOC_BLOCK) - { - error (_("Symbol \"%s\" is not a function (class = %d)"), - sym->linkage_name (), sym->aclass ()); - return 0; - } + error (_("Symbol \"%s\" is not a function (class = %d)"), + sym->linkage_name (), sym->aclass ()); return 1; } |