]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: Fix compile errors
authorDimitar Dimitrov <dimitar@dinux.eu>
Fri, 12 Jan 2024 15:58:57 +0000 (17:58 +0200)
committerDimitar Dimitrov <dimitar@dinux.eu>
Fri, 12 Jan 2024 19:48:25 +0000 (21:48 +0200)
commitb83808a8a2265371ea78c05771dde3d6a6b81115
treefcb463d9cc40b7504a2912a88ee7005a45a8c42e
parentba7c1e37cfb498263a4e309700c27696fa5ff1ad
sim: Fix compile errors

The following change broke simulator testsuite with host GCC 13:
  commit 435ad222b3de93fa647fba7221eece36b1b395eb
  sim: warnings: compile build tools with -Werror too

Host GCC13 complains about missing function prototypes:

binutils/sim/testsuite/common/bits-gen.c:26:1: error: no previous prototype for ‘gen_struct’ [-Werror=missing-prototypes]
   26 | gen_struct (void)
      | ^~~~~~~~~~

Fix by making the functions static, which instructs the compiler that
there is no need for a prototype.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
sim/testsuite/common/alu-n-tst.h
sim/testsuite/common/bits-gen.c
sim/testsuite/common/bits-tst.c