When WORLD_SCORE is not set, io/report.h does not include io/files-util.h. Since save/save.c uses savefile, debug_savefile, and counts_write() from io/files-util.h, compiling save/save.c with the clang compiler (version 12) and WORLD_SCORE not set leads to compiler errors for missing prototypes for the symbols declared in io/report.h.
When WORLD_SCORE is not set, io/report.h does not include io/files-util.h. Since save/save.c uses savefile, debug_savefile, and counts_write() from io/files-util.h, compiling save/save.c with the clang compiler (version 12) and WORLD_SCORE not set leads to compiler errors for missing prototypes for the symbols declared in io/report.h.
This commit, https://osdn.net/projects/hengbandforosx/scm/git/hengbandosx/commits/e159659d0216e44aed597dc25623bef8f7d797f4 , (clang-save-missing-prototypes branch on the hengbandforosx project; branch is based off Hengband's develop branch) always includes io/files-util.h in save/save.c so those prototypes are available regardless of the setting for WORLD_SCORE.