Snippets for angband 4.2.5 from Alpine x86
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-x86/testing/angband/angband-4.2.5-r0.log.
-
Compiling player-spell.c...Compiling player-timed.c...obj-randart.c:3022:43: warning: format '%c' expects argument of type 'int', but argument 3 has type 'wchar_t' {aka 'long int'} [-Wformat=] 3022 | file_putf(fff, "graphics:%c:%s\n", kind->d_char, attr); | ~^ ~~~~~~~~~~~~ | | | | int wchar_t {aka long int} | %ld -
ui-knowledge.c:713:48: warning: format '%d' expects argument of type 'int', but argument 5 has type 'wchar_t' {aka 'long int'} [-Wformat=] 713 | strnfmt(buf, sizeof(buf), "%d/%d", a, c); | ~^ ~ | | | | int wchar_t {aka long int} | %ld -
ui-prefs.c:210:50: warning: format '%d' expects argument of type 'int', but argument 6 has type 'wchar_t' {aka 'long int'} [-Wformat=] 210 | file_putf(fff, "object:%s:%s:%d:%d\n", tval_find_name(kind->tval), | ~^ | | | int | %ld 211 | name, kind_x_attr[i], kind_x_char[i]); | ~~~~~~~~~~~~~~ | | | wchar_t {aka long int} -
wiz-spoil.c:571:49: warning: format '%c' expects argument of type 'int', but argument 5 has type 'wchar_t' {aka 'long int'} [-Wformat=] 571 | strnfmt(exp, sizeof(exp), "%s '%c'", attr_to_text(race->d_attr), | ~^ | | | int | %ld 572 | race->d_char); | ~~~~~~~~~~~~ | | | wchar_t {aka long int} -
wiz-spoil.c:678:42: warning: format '%c' expects argument of type 'int', but argument 3 has type 'wchar_t' {aka 'long int'} [-Wformat=] 678 | textblock_append(tb, " '%c')\n", race->d_char); | ~^ ~~~~~~~~~~~~ | | | | int wchar_t {aka long int} | %ld -
borg/borg4.c:2948:17: warning: the comparison will always evaluate as 'true' for the address of 'brands' will never be NULL [-Waddress] 2948 | if (item->brands) | ^~~~ -
borg/borg6.c:5355:17: warning: the comparison will always evaluate as 'true' for the address of 'slays' will never be NULL [-Waddress] 5355 | if (!obj->slays || !obj->slays[i]) continue; | ^ -
main-spoil.c:126:48: warning: comparison is always true due to limited range of data type [-Wtype-limits] 126 | && ulv <= 4294967295) { | ^~