mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 08:47:28 +00:00
[gdb/testsuite] Fix main in gdb.trace/mi-trace-frame-collected.exp
With test-case gdb.trace/mi-trace-frame-collected.exp I run into:
...
gdb compile failed, gdb.trace/actions.c: In function 'main':
gdb.trace/actions.c:139:1: warning: old-style function definition \
[-Wold-style-definition]
139 | main (argc, argv, envp)
| ^~~~
...
Fix this by rewriting main into a prototyped function.
Tested on x86_64-linux.
PR testsuite/32756
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32756
This commit is contained in:
@@ -136,9 +136,7 @@ static void end () /* called after everything else */
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main (argc, argv, envp)
|
main (int argc, char *argv[], char **envp)
|
||||||
int argc;
|
|
||||||
char *argv[], **envp;
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
unsigned long myparms[10];
|
unsigned long myparms[10];
|
||||||
|
|||||||
Reference in New Issue
Block a user