This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Fix a win32 warning building maint.c
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Thu, 23 Feb 2006 13:35:16 -0500
- Subject: [ob] Fix a win32 warning building maint.c
This function is not compiled or used for _WIN32 (which seems unnecessary,
since that's defined for Cygwin, but this isn't one of ours - it's from GDB
4.x or earlier). The prototype causes GCC to warn. Fortunately it's
not necessary for any system, since the function is static and declared
before use.
Committed as obvious.
--
Daniel Jacobowitz
CodeSourcery
2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
* maint.c (maintenance_dump_me): Remove unnecessary prototype.
Index: src/gdb/maint.c
===================================================================
--- src.orig/gdb/maint.c 2005-12-17 17:34:01.000000000 -0500
+++ src/gdb/maint.c 2006-02-23 10:35:56.000000000 -0500
@@ -44,8 +44,6 @@ extern void _initialize_maint_cmds (void
static void maintenance_command (char *, int);
-static void maintenance_dump_me (char *, int);
-
static void maintenance_internal_error (char *args, int from_tty);
static void maintenance_demangle (char *, int);