Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* bogus main declaration in gdb.base/label.c
@ 2013-01-14 20:52 David Blaikie
  2013-01-14 21:29 ` Tom Tromey
  0 siblings, 1 reply; 6+ messages in thread
From: David Blaikie @ 2013-01-14 20:52 UTC (permalink / raw)
  To: gdb-patches

[-- 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;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-01-17 17:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-14 20:52 bogus main declaration in gdb.base/label.c David Blaikie
2013-01-14 21:29 ` Tom Tromey
2013-01-15 18:07   ` David Blaikie
2013-01-15 18:18     ` Sergio Durigan Junior
2013-01-15 18:33       ` David Blaikie
2013-01-17 17:29         ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox