aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2014-11-14 18:36:30 +0000
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-11-17 10:26:31 +0100
commita267f3ad3f8c3f76f46ed006ac11a88426414339 (patch)
tree191622c7f6f10fd7f50f61404b3887bc1e25c6d0
parent12084a9ae15f6844e987ff6d3b2a64bb5963da8a (diff)
downloadgdb-a267f3ad3f8c3f76f46ed006ac11a88426414339.zip
gdb-a267f3ad3f8c3f76f46ed006ac11a88426414339.tar.gz
gdb-a267f3ad3f8c3f76f46ed006ac11a88426414339.tar.bz2
GDB testsuite: More fixes for warnings with -std=gnu11
Fix some more C compiler warnings for missing function return types and implicit function declarations in the GDB testsuite. gdb/testsuite/ChangeLog: * gdb.base/bp-permanent.c: Include unistd.h. * gdb.python/py-framefilter-mi.c (main): Add return type. * gdb.python/py-framefilter.c (main): Likewise. * gdb.trace/actions-changed.c (main): Likewise.
-rw-r--r--gdb/testsuite/ChangeLog7
-rw-r--r--gdb/testsuite/gdb.base/bp-permanent.c1
-rw-r--r--gdb/testsuite/gdb.python/py-framefilter-mi.c2
-rw-r--r--gdb/testsuite/gdb.python/py-framefilter.c2
-rw-r--r--gdb/testsuite/gdb.trace/actions-changed.c3
5 files changed, 15 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 351d2df..0bd36fc 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,12 @@
2014-11-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
+ * gdb.base/bp-permanent.c: Include unistd.h.
+ * gdb.python/py-framefilter-mi.c (main): Add return type.
+ * gdb.python/py-framefilter.c (main): Likewise.
+ * gdb.trace/actions-changed.c (main): Likewise.
+
+2014-11-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
* gdb.mi/until.c: Add eye-catchers.
* gdb.mi/mi-until.exp: Refer to eye-catchers instead of literal
line numbers.
diff --git a/gdb/testsuite/gdb.base/bp-permanent.c b/gdb/testsuite/gdb.base/bp-permanent.c
index 53b3777..a45a922 100644
--- a/gdb/testsuite/gdb.base/bp-permanent.c
+++ b/gdb/testsuite/gdb.base/bp-permanent.c
@@ -18,6 +18,7 @@
#include <string.h>
#ifdef SIGNALS
#include <signal.h>
+#include <unistd.h>
#endif
#define NOP asm("nop")
diff --git a/gdb/testsuite/gdb.python/py-framefilter-mi.c b/gdb/testsuite/gdb.python/py-framefilter-mi.c
index 242efa1..ae203a6 100644
--- a/gdb/testsuite/gdb.python/py-framefilter-mi.c
+++ b/gdb/testsuite/gdb.python/py-framefilter-mi.c
@@ -132,7 +132,9 @@ int func5(int f, int d)
return i;
}
+int
main()
{
func5(3,5);
+ return 0;
}
diff --git a/gdb/testsuite/gdb.python/py-framefilter.c b/gdb/testsuite/gdb.python/py-framefilter.c
index 80087c2..8bdb3da 100644
--- a/gdb/testsuite/gdb.python/py-framefilter.c
+++ b/gdb/testsuite/gdb.python/py-framefilter.c
@@ -146,10 +146,12 @@ int func5(int f, int d)
return i;
}
+int
main()
{
int z = 32;
int y = 44;
const char *foo1 = "Test";
func5(3,5);
+ return 0;
}
diff --git a/gdb/testsuite/gdb.trace/actions-changed.c b/gdb/testsuite/gdb.trace/actions-changed.c
index 602e61a..b9df26b 100644
--- a/gdb/testsuite/gdb.trace/actions-changed.c
+++ b/gdb/testsuite/gdb.trace/actions-changed.c
@@ -42,6 +42,7 @@ subr (int parm)
return busy;
}
+int
main()
{
subr (1);
@@ -63,4 +64,6 @@ main()
subr (6);
subr2 (6);
end (6);
+
+ return 0;
}