This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: add missing 'static'
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 24 Jun 2010 14:17:32 -0600
- Subject: FYI: add missing 'static'
- Reply-to: tromey at redhat dot com
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)
{