aboutsummaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-05-18 10:13:32 -0600
committerTom Tromey <tromey@adacore.com>2022-06-02 09:04:45 -0600
commit527907e0e61e50708b1bbdcc95cf53b6b9562217 (patch)
treee8854e710614c9a58f4f0bba4cd93ba85e1cb706 /gdb/maint.c
parenta7f779c12e6f166e279ce2e189aa009dabaccae7 (diff)
downloadgdb-527907e0e61e50708b1bbdcc95cf53b6b9562217.zip
gdb-527907e0e61e50708b1bbdcc95cf53b6b9562217.tar.gz
gdb-527907e0e61e50708b1bbdcc95cf53b6b9562217.tar.bz2
ODR warning for "main"
"main" is redeclared with a different type in maint.c. I think this might have come from my first gdb patch, many many years ago. While I wonder if this profiling code is actually useful at all any more, in the meantime it's simple to fix the declaration. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=22395
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/maint.c b/gdb/maint.c
index 31b8fd8..2895609 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -799,7 +799,7 @@ mcleanup_wrapper (void)
}
EXTERN_C void monstartup (unsigned long, unsigned long);
-extern int main ();
+extern int main (int, char **);
static void
maintenance_set_profile_cmd (const char *args, int from_tty,