]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ODR warning for "main"
authorTom Tromey <tromey@adacore.com>
Wed, 18 May 2022 16:13:32 +0000 (10:13 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 2 Jun 2022 15:04:45 +0000 (09:04 -0600)
commit527907e0e61e50708b1bbdcc95cf53b6b9562217
treee8854e710614c9a58f4f0bba4cd93ba85e1cb706
parenta7f779c12e6f166e279ce2e189aa009dabaccae7
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
gdb/maint.c