diff options
author | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2018-11-03 19:31:41 +0100 |
---|---|---|
committer | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2018-11-03 19:31:41 +0100 |
commit | 814fa4f632006dace09b131021b949021dfb58bf (patch) | |
tree | 3a2fbe1e5aef9ff2f1ca5b629c1dbf9893d04da5 /gdb/language.c | |
parent | 3c6dd3d1c76a4a55555a2df85140ede39e8363cb (diff) | |
download | binutils-gdb-814fa4f632006dace09b131021b949021dfb58bf.tar.gz |
OBVIOUS Remove a useless const char *type and its initialization.
Valgrind detected a leak for the line:
type = xstrdup ("auto");
as the compile probably dropped the type variable completely, as its
only usage was this initialization.
So, remove the useless variable.
Diffstat (limited to 'gdb/language.c')
-rw-r--r-- | gdb/language.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/language.c b/gdb/language.c index 21eda576b0c..e2f400161b3 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -105,10 +105,9 @@ static const struct language_defn *languages[] = { &ada_language_defn, }; -/* The current values of the "set language/type/range" enum +/* The current values of the "set language/range/case-sensitive" enum commands. */ static const char *language; -static const char *type; static const char *range; static const char *case_sensitive; @@ -1174,7 +1173,6 @@ For Fortran the default is off; for other languages the default is on."), add_set_language_command (); language = xstrdup ("auto"); - type = xstrdup ("auto"); range = xstrdup ("auto"); case_sensitive = xstrdup ("auto"); |