gdb: remove return value of set_language

set_language returns the previous language, but nothing uses it.  Remove
the return value.  This lets us remove the assignment to
current_language, in _initialize_language.

Change-Id: Ifccf9b488434c1addf4626130a74e159a37d8c17
Reviewed-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
Simon Marchi
2023-04-14 14:31:44 -04:00
parent bd648c6ea0
commit 6fc39605e6
2 changed files with 5 additions and 14 deletions

View File

@@ -761,8 +761,9 @@ struct symbol *
extern void language_info ();
extern enum language set_language (enum language);
/* Set the current language to LANG. */
extern void set_language (enum language lang);
/* Test a character to decide whether it can be printed in literal form
or needs to be printed in another representation. For example,