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.
+2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * language.c (type): Remove.
+ (_initialize_language): Remove assignment to type.
+
2018-11-02 Joel Brobecker <brobecker@adacore.com>
* aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
&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;
add_set_language_command ();
language = xstrdup ("auto");
- type = xstrdup ("auto");
range = xstrdup ("auto");
case_sensitive = xstrdup ("auto");