]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: testsuite: Fix build with host GCC15
authorDimitar Dimitrov <dimitar@dinux.eu>
Sat, 3 May 2025 20:36:30 +0000 (23:36 +0300)
committerDimitar Dimitrov <dimitar@dinux.eu>
Mon, 19 May 2025 18:12:51 +0000 (21:12 +0300)
commitc67b2ee18a9e064243902c265cb9b24aa736bdab
tree4fd0d6dcdc9124da4dd28c842aa09bc3bbb52bc3
parenta20c9955779aa788f3b7433b8a9eddddbed9b1cb
sim: testsuite: Fix build with host GCC15

Simulator testsuite build started failing with host GCC-15:

  bits-tst.c:323:1: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
  bits-tst.c: In function ‘main’:
  bits-tst.c:323:1: error: old-style function definition [-Werror=old-style-definition]

Fix by including string.h to get the required prototypes, and changing
main's declaration to modern C.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Approved-By: Tom Tromey <tom@tromey.com>
sim/testsuite/common/bits-tst.c