This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Squelch warnings in cplus-dem.c


Without this patch, the default compilation (on linux) gives warnings.

1999-10-22  Jim Kingdon  <http://developer.redhat.com/>

	* cplus-dem.c: Move declarations of standard_symbol_characters and
	hp_symbol_characters inside #ifdef MAIN to avoid compiler
	warnings.

Index: cplus-dem.c
===================================================================
RCS file: /cvs/gdb/gdb/libiberty/cplus-dem.c,v
retrieving revision 1.1.1.8
diff -u -r1.1.1.8 cplus-dem.c
--- cplus-dem.c	1999/10/19 02:46:59	1.1.1.8
+++ cplus-dem.c	1999/10/23 13:10:59
@@ -436,12 +436,6 @@
 recursively_demangle PARAMS ((struct work_stuff *, const char **, string *,
 			      int));
 
-static const char *
-standard_symbol_characters PARAMS ((void));
-
-static const char *
-hp_symbol_characters PARAMS ((void));
-
 /* Translate count to integer, consuming tokens in the process.
    Conversion terminates on the first non-digit character.
 
@@ -4428,6 +4422,12 @@
   fatal ("Internal gcc abort.");
 }
 
+
+static const char *
+standard_symbol_characters PARAMS ((void));
+
+static const char *
+hp_symbol_characters PARAMS ((void));
 
 /* Return the string of non-alnum characters that may occur 
    as a valid symbol component, in the standard assembler symbol

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]