Ticket #41480

src/player/player-damage.c: missing prototype for get_rnd_line()

오픈 날짜: 2021-02-06 06:33 마지막 업데이트: 2021-02-06 21:27

Reporter:
소유자:
Type:
Status:
Closed
Component:
(None)
Priority:
1 - Lowest
Severity:
1 - Lowest
Resolution:
Duplicate
File:
None

Details

The version of src/player/player-damage.c currently in the develop branch calls get_rnd_line() but does not have a prototype for that function. With the default compiler options on clang (at least for version 12), that triggers a compiler error.

This commit, https://osdn.net/projects/hengbandforosx/scm/git/hengbandosx/commits/9e8a2452f24e526c7d51798c480352a07f68707f , (clang-player-damage-missing-prototype branch on the hengbandforosx project; the branch is based off Hengband's develop branch) pulls in io/files-util.h to get the prototype for get_rnd_line().

Ticket History (3/5 Histories)

2021-02-06 06:33 Updated by: backwardseric
  • New Ticket "src/player/player-damage.c: missing prototype for get_rnd_line()" created
2021-02-06 06:41 Updated by: backwardseric
댓글 올리기

I should have specified that the error occurred when reporting the score had been disabled (WORLD_SCORE not set so io/report.h does not include io/files-util.h).

2021-02-06 15:41 Updated by: habu
  • Status Update from Open to Closed
  • Resolution Update from None to Duplicate
댓글 올리기

I had noticed this problem some time ago and had created a ticket #41444 for this issue.

Your series of commits (tickets #41480 #41481 #41482) will be taken in and this issue will be dealt with in ticket #41444.

Thank you.

2021-02-06 21:26 Updated by: deskull
2021-02-06 21:27 Updated by: deskull
  • 소유자 Update from (None) to habu

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login