GDB testsuite: More fixes for warnings with -std=gnu11
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Fri, 14 Nov 2014 18:36:30 +0000 (18:36 +0000)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Mon, 17 Nov 2014 09:26:31 +0000 (10:26 +0100)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/bp-permanent.c
gdb/testsuite/gdb.python/py-framefilter-mi.c
gdb/testsuite/gdb.python/py-framefilter.c
gdb/testsuite/gdb.trace/actions-changed.c

index 351d2df28b17dcd17afd1c85a9125125dea0a094..0bd36fcd985ec2480eca74f5ccfaf1482127d189 100644 (file)
@@ -1,3 +1,10 @@
+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.
index 53b3777eb1813e48517ad5e9e689dff2b543906a..a45a922e8f34c8e5dc5575c49b2a6c964fbeef2d 100644 (file)
@@ -18,6 +18,7 @@
 #include <string.h>
 #ifdef SIGNALS
 #include <signal.h>
+#include <unistd.h>
 #endif
 
 #define NOP asm("nop")
index 242efa1b1e12470a37f32b6d66d2a2db16a47e75..ae203a6ea8b43ebefb28a6c31015b55b7383da0a 100644 (file)
@@ -132,7 +132,9 @@ int func5(int f, int d)
   return i;
 }
 
+int
 main()
 {
   func5(3,5);
+  return 0;
 }
index 80087c2f935d48c3a80766c125927adaf6fc5862..8bdb3da28b9f51b1efe55ba9fd2a94ab18710a00 100644 (file)
@@ -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;
 }
index 602e61a94316ba2af1394a20a4eac36c29a3324d..b9df26b3755556f23ad1ab17880ebd641644a066 100644 (file)
@@ -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;
 }
This page took 0.031049 seconds and 4 git commands to generate.