Fix most -Wmissing-prototypes -Wmissing-declarations warnings

Joel Brobecker brobecker@adacore.com
Fri Feb 20 00:46:00 GMT 2009


> The ada_typedef_print thing is a known oddity:
> 
> http://sourceware.org/ml/gdb-patches/2008-09/msg00541.html

ARGH! I missed that message :-(.  Don't hestitate to ping me
when Ada is involved, or even to take action. At worst, I can
always put it back if we later find that we need it after all.

Function removed thusly:

2009-02-19  Joel Brobecker  <brobecker@adacore.com>

        * ada-typeprint.c (ada_typedef_print): Remove.  Unused.

Tested on x86-linux by rebuilding GDB. I also grepped all files
in the sources to make sure it's not referenced anywhere else
(except ChangeLog files).

Sorry again for missing the first message.

-- 
Joel
-------------- next part --------------
Index: ada-typeprint.c
===================================================================
RCS file: /cvs/src/src/gdb/ada-typeprint.c,v
retrieving revision 1.24
diff -u -p -r1.24 ada-typeprint.c
--- ada-typeprint.c	3 Jan 2009 05:57:50 -0000	1.24
+++ ada-typeprint.c	19 Feb 2009 23:57:09 -0000
@@ -114,22 +114,6 @@ decoded_type_name (struct type *type)
     }
 }
 
-
-/* Print a description of a type in the format of a
-   typedef for the current language.
-   NEW is the new name for a type TYPE.  */
-
-void
-ada_typedef_print (struct type *type, struct symbol *new,
-		   struct ui_file *stream)
-{
-   /* XXX: type_sprint */
-  fprintf_filtered (stream, "type %.*s is ",
-		    ada_name_prefix_len (SYMBOL_PRINT_NAME (new)),
-		    SYMBOL_PRINT_NAME (new));
-  type_print (type, "", stream, 1);
-}
-
 /* Print range type TYPE on STREAM.  */
 
 static void


More information about the Gdb-patches mailing list