[gdb/testsuite] Use -std=gnu99 for gdb.server/attach-flag.exp
When using a compiler defaulting to -std=gnu90, we run into: ... Running gdb.server/attach-flag.exp ... gdb compile failed, attach-flag.c: In function 'main': attach-flag.c:22:3: error: 'for' loop initial declarations are only allowed \ in C99 or C11 mode for (int i = 0; i < NTHREADS; i++) ^~~ attach-flag.c:22:3: note: use option -std=c99, -std=gnu99, -std=c11 or \ -std=gnu11 to compile your code ... Fix this by using -std=gnu99. Tested on x86_64-linux.
This commit is contained in:
parent
f20f27e055
commit
618e9847c5
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ proc run_one_test { non-stop target-non-stop } {
|
|||
}
|
||||
|
||||
if { [prepare_for_testing "failed to prepare" $::testfile $::srcfile \
|
||||
{debug pthreads}] } {
|
||||
{debug pthreads additional_flags=-std=gnu99}] } {
|
||||
return -1
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue