Snippets for 1oom 1.11.9 from Nix x86_64-linux
Sourced from https://hydra.nixos.org/log/w5mi09c7mfkqd3qhskanr803km4dsds8-1oom-1.11.9.drv.
-
uimainmenu.c:189:71: warning: ISO C forbids initialization between function pointer and 'void *' [-Wpedantic] 189 | int (*func)(struct game_new_options_s *newopts, player_id_t pi) = var; | ^~~ -
uimainmenu.c:240:59: warning: ISO C forbids initialization between function pointer and 'void *' [-Wpedantic] 240 | { "b", "[PLAYER]", "Banner", 1, 1, 0, cmd_choose, ui_new_game_choose_banner }, | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
uimainmenu.c:241:65: warning: ISO C forbids initialization between function pointer and 'void *' [-Wpedantic] 241 | { "n", "[PLAYER]", "Emperor name", 1, 1, 0, cmd_choose, ui_new_game_pname }, | ^~~~~~~~~~~~~~~~~ -
uimainmenu.c:242:67: warning: ISO C forbids initialization between function pointer and 'void *' [-Wpedantic] 242 | { "h", "[PLAYER]", "Home word name", 1, 1, 0, cmd_choose, ui_new_game_hname }, | ^~~~~~~~~~~~~~~~~ -
uistarmap_common.h:102:6: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 102 | }; | ^ -
uimainmenu.c:423:62: warning: pointer targets in passing argument 3 of 'menu_make_int_func' differ in signedness [-Wpointer-sign] 423 | menu_make_int_func(menu_allocate_item(), "Music volume", &opt_music_volume, 0, 128, main_menu_update_music_volume, MOO_KEY_u); | ^~~~~~~~~~~~~~~~~ | | | int * -
uimainmenu.c:425:60: warning: pointer targets in passing argument 3 of 'menu_make_int_func' differ in signedness [-Wpointer-sign] 425 | menu_make_int_func(menu_allocate_item(), "SFX volume", &opt_sfx_volume, 0, 128, main_menu_update_sfx_volume, MOO_KEY_f); | ^~~~~~~~~~~~~~~ | | | int * -
uimainmenu.c:432:78: warning: pointer targets in passing argument 3 of 'menu_make_int' differ in signedness [-Wpointer-sign] 432 | menu_make_int(menu_item_force_restart(menu_allocate_item()), "UI scale", &ui_scale_hint, 1, UI_SCALE_MAX, MOO_KEY_s); | ^~~~~~~~~~~~~~ | | | int * -
uimainmenu.c:479:57: warning: pointer targets in passing argument 3 of 'menu_make_int' differ in signedness [-Wpointer-sign] 479 | menu_make_int(menu_allocate_item(), "Scroll speed", &ui_sm_scroll_speed, 0, UI_SCROLL_SPEED_MAX, MOO_KEY_p); | ^~~~~~~~~~~~~~~~~~~ | | | int * -
uimainmenu.c:519:65: warning: pointer targets in passing argument 3 of 'menu_make_int' differ in signedness [-Wpointer-sign] 519 | menu_make_int(menu_allocate_item(), "Tech Cost Multiplier", &game_num_tech_costmul, 50, 400, MOO_KEY_UNKNOWN); | ^~~~~~~~~~~~~~~~~~~~~~ | | | int * -
uimainmenu.c:520:68: warning: pointer targets in passing argument 3 of 'menu_make_int' differ in signedness [-Wpointer-sign] 520 | menu_make_int(menu_allocate_item(), "AI Tech Cost Multiplier", &game_num_tech_costmula2, 50, 100, MOO_KEY_UNKNOWN); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | int * -
uimainmenu.c:521:71: warning: pointer targets in passing argument 3 of 'menu_make_int' differ in signedness [-Wpointer-sign] 521 | menu_make_int(menu_allocate_item(), "Human Tech Cost Multiplier", &game_num_tech_costmuld2, 100, 400, MOO_KEY_UNKNOWN); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | int * -
uiobj.c:120:6: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic] 120 | }; | ^ -
uiobj.c:1520:22: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized] 1520 | switch (p->type) { | ~^~~~~~ -
game_event.c:755:49: warning: invalid use of pointers to arrays with different qualifiers in ISO C before C23 [-Wpedantic] 755 | const uint8_t (*rl)[TECH_TIER_NUM][3] = g->srd[player].researchlist; | ^ -
game_new.c:1002:57: warning: invalid use of pointers to arrays with different qualifiers in ISO C before C23 [-Wpedantic] 1002 | if (!game_generate_research_check_field(rl, field, rr)) { | ^~ -
game_turn.c:667:5: warning: value computed is not used [-Wunused-value] 667 | || game_turn_finished_switch_slider(g, p, from, PLANET_SLIDER_ECO); | ^~ -
game_misc.c:379:55: warning: 'srange2' may be used uninitialized [-Wmaybe-uninitialized] 379 | if (BOOLVEC_IS0(p->within_srange, pi) && ((srange2 > 0) || game_num_ship_scanner_fix)) {