bogus main declaration in gdb.base/label.c

David Blaikie
2013-01-14T20:52:12Z

[-- Attachment #1: Type: text/plain, Size: 336 bytes --]

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

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

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

[-- Attachment #2: gdb-label.diff --]
[-- Type: application/octet-stream, Size: 307 bytes --]

diff --git gdb/testsuite/gdb.base/label.c gdb/testsuite/gdb.base/label.c
index f9cd8c3..c15e3bf 100644
--- gdb/testsuite/gdb.base/label.c
+++ gdb/testsuite/gdb.base/label.c
@@ -1,7 +1,7 @@
#include <stdio.h>

int
-main (int argc, char *argv)
+main (int argc, char **argv)
{
int i = 0;
goto there;