bogus main declaration in gdb.base/label.c

Tom Tromey tromey@redhat.com
Mon Jan 14 21:29:00 GMT 2013


>>>>> "David" == David Blaikie <dblaikie@gmail.com> writes:

David> The declaration of main in gdb.base/label.c is incorrect & fails to
David> compile under Clang:

David> ../../../src/gdb/7.5/gdb/testsuite/gdb.base/label.c:4:1: error: second
David> parameter of 'main' (argument array) must be of type 'char **'
David> main (int argc, char *argv)
David> ^

David> The attached patch fixes this by adding the missing '*' to the
David> second parameter.

It needs a ChangeLog entry, but otherwise is ok.

If you're going to submit more patches, you should start the copyright
assignment process.  Send me email off-list & I will send you what you
need.

Tom



More information about the Gdb-patches mailing list