mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 16:53:50 +08:00
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.
This commit is contained in:
@ -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. */
|
/* Make sure that the symbol we found corresponds to a function. */
|
||||||
|
|
||||||
if (sym->aclass () != LOC_BLOCK)
|
if (sym->aclass () != LOC_BLOCK)
|
||||||
{
|
|
||||||
error (_("Symbol \"%s\" is not a function (class = %d)"),
|
error (_("Symbol \"%s\" is not a function (class = %d)"),
|
||||||
sym->linkage_name (), sym->aclass ());
|
sym->linkage_name (), sym->aclass ());
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
sym = standard_lookup (einfo->catch_handlers_sym, NULL, VAR_DOMAIN);
|
sym = standard_lookup (einfo->catch_handlers_sym, NULL, VAR_DOMAIN);
|
||||||
if (sym == NULL)
|
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. */
|
/* Make sure that the symbol we found corresponds to a function. */
|
||||||
|
|
||||||
if (sym->aclass () != LOC_BLOCK)
|
if (sym->aclass () != LOC_BLOCK)
|
||||||
{
|
|
||||||
error (_("Symbol \"%s\" is not a function (class = %d)"),
|
error (_("Symbol \"%s\" is not a function (class = %d)"),
|
||||||
sym->linkage_name (), sym->aclass ());
|
sym->linkage_name (), sym->aclass ());
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user