FYI: add missing 'static'

Tom Tromey tromey@redhat.com
Thu Jun 24 20:17:00 GMT 2010


I'm checking this in.

While looking at Keith's patch I noticed that a function definition was
missing a 'static'.  It was already declared static earlier, but I think
it is more readable to also have the keyword on the definition.

Tom

2010-06-24  Tom Tromey  <tromey@redhat.com>

	* psymtab.c (lookup_partial_symbol): Mark definition as static.

Index: psymtab.c
===================================================================
RCS file: /cvs/src/src/gdb/psymtab.c,v
retrieving revision 1.4
diff -u -r1.4 psymtab.c
--- psymtab.c	16 May 2010 01:27:02 -0000	1.4
+++ psymtab.c	24 Jun 2010 20:16:15 -0000
@@ -424,7 +424,7 @@
 /* Look, in partial_symtab PST, for symbol whose natural name is NAME.
    Check the global symbols if GLOBAL, the static symbols if not. */
 
-struct partial_symbol *
+static struct partial_symbol *
 lookup_partial_symbol (struct partial_symtab *pst, const char *name,
 		       int global, domain_enum domain)
 {



More information about the Gdb-patches mailing list