mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +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
@ -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>
|
2014-11-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* gdb.mi/until.c: Add eye-catchers.
|
* gdb.mi/until.c: Add eye-catchers.
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifdef SIGNALS
|
#ifdef SIGNALS
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define NOP asm("nop")
|
#define NOP asm("nop")
|
||||||
|
@ -132,7 +132,9 @@ int func5(int f, int d)
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
func5(3,5);
|
func5(3,5);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -146,10 +146,12 @@ int func5(int f, int d)
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
int z = 32;
|
int z = 32;
|
||||||
int y = 44;
|
int y = 44;
|
||||||
const char *foo1 = "Test";
|
const char *foo1 = "Test";
|
||||||
func5(3,5);
|
func5(3,5);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,7 @@ subr (int parm)
|
|||||||
return busy;
|
return busy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
subr (1);
|
subr (1);
|
||||||
@ -63,4 +64,6 @@ main()
|
|||||||
subr (6);
|
subr (6);
|
||||||
subr2 (6);
|
subr2 (6);
|
||||||
end (6);
|
end (6);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user