diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2024-01-12 17:58:57 +0200 |
---|---|---|
committer | Dimitar Dimitrov <dimitar@dinux.eu> | 2024-01-12 21:48:25 +0200 |
commit | b83808a8a2265371ea78c05771dde3d6a6b81115 (patch) | |
tree | fcb463d9cc40b7504a2912a88ee7005a45a8c42e /gprofng/src | |
parent | ba7c1e37cfb498263a4e309700c27696fa5ff1ad (diff) | |
download | binutils-b83808a8a2265371ea78c05771dde3d6a6b81115.zip binutils-b83808a8a2265371ea78c05771dde3d6a6b81115.tar.gz binutils-b83808a8a2265371ea78c05771dde3d6a6b81115.tar.bz2 |
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>
Diffstat (limited to 'gprofng/src')
0 files changed, 0 insertions, 0 deletions