aboutsummaryrefslogtreecommitdiff
path: root/bfd/vms-misc.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-04-24 15:02:59 +0200
committerTom de Vries <tdevries@suse.de>2023-04-24 15:02:59 +0200
commit618e9847c576e97724a39077925588e4c19119b2 (patch)
tree12ed44146647934697dfb389be65b9782030b1c1 /bfd/vms-misc.c
parentf20f27e0553b6751c4fa39ce2acb7e0da370ef23 (diff)
downloadbinutils-618e9847c576e97724a39077925588e4c19119b2.zip
binutils-618e9847c576e97724a39077925588e4c19119b2.tar.gz
binutils-618e9847c576e97724a39077925588e4c19119b2.tar.bz2
[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.
Diffstat (limited to 'bfd/vms-misc.c')
0 files changed, 0 insertions, 0 deletions