From a267f3ad3f8c3f76f46ed006ac11a88426414339 Mon Sep 17 00:00:00 2001 From: Andreas Arnez Date: Fri, 14 Nov 2014 18:36:30 +0000 Subject: 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. --- gdb/testsuite/gdb.python/py-framefilter-mi.c | 2 ++ gdb/testsuite/gdb.python/py-framefilter.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'gdb/testsuite/gdb.python') 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; } -- cgit v1.1