aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.multi/hangout.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2016-01-08 20:07:02 +0100
committerJan Kratochvil <jan.kratochvil@redhat.com>2016-01-08 20:07:02 +0100
commit6cfc1fcb515d1ecd8445905b4749b81b3ca69552 (patch)
tree659151ca195a5205e79a2f3145e4b4faf336ba38 /gdb/testsuite/gdb.multi/hangout.c
parent582a1b0064b14cb12b18f48678876d32c59c11c8 (diff)
downloadgdb-6cfc1fcb515d1ecd8445905b4749b81b3ca69552.zip
gdb-6cfc1fcb515d1ecd8445905b4749b81b3ca69552.tar.gz
gdb-6cfc1fcb515d1ecd8445905b4749b81b3ca69552.tar.bz2
Fix gdb.multi/base.exp testsuite regression
Regressed by: commit 762f774785f4ef878ac4c831e1f4733dc957234d Author: Pedro Alves <palves@redhat.com> Date: Thu Dec 10 16:21:06 2015 +0000 Stop using nowarnings in gdb/testsuite/gdb.multi/ +gdb compile failed, gdb/testsuite/gdb.multi/hello.c: In function 'commonfun': +gdb/testsuite/gdb.multi/hello.c:24:19: warning: implicit declaration of function 'bar' [-Wimplicit-function-declaration] + int commonfun() { bar(); } /* from hello */ + ^ +gdb/testsuite/gdb.multi/hello.c: At top level: +gdb/testsuite/gdb.multi/hello.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int] + bar() + ^ +gdb/testsuite/gdb.multi/hello.c:32:1: warning: return type defaults to 'int' [-Wimplicit-int] + hello(int x) + ^ +gdb/testsuite/gdb.multi/hello.c:38:1: warning: return type defaults to 'int' [-Wimplicit-int] + main() + ^ +UNTESTED: gdb.multi/base.exp: base.exp gdb/testsuite/ChangeLog 2016-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.multi/goodbye.c: Fix compilation warnings by adding return types and reordering the functions. * gdb.multi/hangout.c: Likewise. * gdb.multi/hello.c: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.multi/hangout.c')
-rw-r--r--gdb/testsuite/gdb.multi/hangout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.multi/hangout.c b/gdb/testsuite/gdb.multi/hangout.c
index e2c41b8..3701512 100644
--- a/gdb/testsuite/gdb.multi/hangout.c
+++ b/gdb/testsuite/gdb.multi/hangout.c
@@ -17,6 +17,7 @@
#include <stdio.h>
+int
main(int argc, char *argv[])
{
int i;