aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-01-19 09:50:48 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-01-19 09:50:48 +0000
commit0ec6cd0ca9255357f9dcd16caf9c939bff32a927 (patch)
treef7eeb9420fefbb3e71500a161097356808840a3c /gdb
parentb74845da582460c3fb05bef68c0c1a1ea38c2e7d (diff)
downloadgdb-0ec6cd0ca9255357f9dcd16caf9c939bff32a927.zip
gdb-0ec6cd0ca9255357f9dcd16caf9c939bff32a927.tar.gz
gdb-0ec6cd0ca9255357f9dcd16caf9c939bff32a927.tar.bz2
"delete" ada-lex.c:input function, not used.
* ada-lex.l: #define YY_NO_INPUT.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ada-lex.l4
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c3f2df8..67d6651 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2010-01-19 Joel Brobecker <brobecker@adacore.com>
+ "delete" ada-lex.c:input function, not used.
+ * ada-lex.l: #define YY_NO_INPUT.
+
+2010-01-19 Joel Brobecker <brobecker@adacore.com>
+
Delete free_named_symtabs and associated cleanup.
* symfile.h (free_named_symtabs): Delete declaration.
* symfile.c: Remove some commented out code (clear_symtab_users_once).
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l
index 2e6136e..f198ea7 100644
--- a/gdb/ada-lex.l
+++ b/gdb/ada-lex.l
@@ -58,6 +58,10 @@ static int find_dot_all (const char *);
#undef YY_DECL
#define YY_DECL static int yylex ( void )
+/* Flex generates a static function "input" which is not used.
+ Defining YY_NO_INPUT comments it out. */
+#define YY_NO_INPUT
+
#undef YY_INPUT
#define YY_INPUT(BUF, RESULT, MAX_SIZE) \
if ( *lexptr == '\000' ) \