]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Use -std=c99 in gdb.base/callfuncs.exp
authorTom de Vries <tdevries@suse.de>
Sun, 9 Nov 2025 07:07:57 +0000 (08:07 +0100)
committerTom de Vries <tdevries@suse.de>
Sun, 9 Nov 2025 07:07:57 +0000 (08:07 +0100)
commitf081af0715900fa48ebfc3b1d9ece297d024e303
tree6ed31f108daf9990a56fd149e2b124456e4b8039
parentc2f9db99b9a9e7ad2a647bf903804b7475f42d06
[gdb/testsuite] Use -std=c99 in gdb.base/callfuncs.exp

In test-case gdb.base/callfuncs.exp I run into:
...
gdb compile failed, gdb.base/callfuncs.c: In function 't_func_values':
gdb.base/callfuncs.c:611:12: error: too many arguments to function \
  'func_arg1'; expected 0, have 2
  611 |   return ((*func_arg1) (5,5)  == (*func_val1) (5,5)
      |           ~^~~~~~~~~~~  ~
...

Fix this by using -std=c99.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
PR testsuite/32756
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32756
gdb/testsuite/gdb.base/callfuncs.exp