diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2014-11-14 18:36:30 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2014-11-17 10:26:31 +0100 |
commit | a267f3ad3f8c3f76f46ed006ac11a88426414339 (patch) | |
tree | 191622c7f6f10fd7f50f61404b3887bc1e25c6d0 /gdb/testsuite/gdb.python | |
parent | 12084a9ae15f6844e987ff6d3b2a64bb5963da8a (diff) | |
download | binutils-a267f3ad3f8c3f76f46ed006ac11a88426414339.zip binutils-a267f3ad3f8c3f76f46ed006ac11a88426414339.tar.gz binutils-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.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r-- | gdb/testsuite/gdb.python/py-framefilter-mi.c | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-framefilter.c | 2 |
2 files changed, 4 insertions, 0 deletions
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; } |