mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
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.
This commit is contained in:

committed by
Andreas Krebbel

parent
12084a9ae1
commit
a267f3ad3f
@ -132,7 +132,9 @@ int func5(int f, int d)
|
||||
return i;
|
||||
}
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
func5(3,5);
|
||||
return 0;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user