Snippets for alienarena 7.71.7 from Fedora i686
Sourced from https://kojipkgs.fedoraproject.org/packages/alienarena/7.71.7/7.fc45/data/logs/i686/build.log.
-
qcommon/cmd.c:426:25: warning: variable ‘len’ set but not used [-Wunused-but-set-variable=] 426 | int len; | ^~~ -
qcommon/cmd.c:449:25: warning: variable ‘len’ set but not used [-Wunused-but-set-variable=] 449 | int len; | ^~~ -
qcommon/cmodel.c:1584:29: warning: variable ‘length’ set but not used [-Wunused-but-set-variable=] 1584 | int length; | ^~~~~~ -
qcommon/cmd.c:1025:33: warning: unused variable ‘retval’ [-Wunused-variable] 1025 | static char retval[256]; | ^~~~~~ -
qcommon/files.c:673:25: warning: variable ‘tries’ set but not used [-Wunused-but-set-variable=] 673 | int tries; | ^~~~~ -
qcommon/cmd.c:796:25: warning: ‘strncpy’ specified bound 1024 equals destination size [-Wstringop-truncation] 796 | strncpy( cmd_args, text, sizeof( cmd_args ) ); | ^ -
qcommon/md5.c:273:26: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] 273 | memset(ctx, 0, sizeof(ctx)); // In case it's sensitive | ^ -
qcommon/net_chan.c:309:33: warning: variable ‘qport’ set but not used [-Wunused-but-set-variable=] 309 | int qport; | ^~~~~ -
qcommon/mdfour.c:216:11: warning: storing the address of local variable ‘md’ in ‘m’ [-Wdangling-pointer=] 216 | m = md; | ~~^~~~ -
qcommon/terrain.c:513:16: warning: variable ‘sz’ set but not used [-Wunused-but-set-variable=] 513 | size_t sz; | ^~ -
qcommon/terrain.c:592:16: warning: variable ‘sz’ set but not used [-Wunused-but-set-variable=] 592 | size_t sz; | ^~ -
server/sv_ents.c:456:18: warning: variable ‘clientphs’ set but not used [-Wunused-but-set-variable=] 456 | byte *clientphs; | ^~~~~~~~~ -
server/sv_ents.c:455:25: warning: variable ‘c_fullsend’ set but not used [-Wunused-but-set-variable=] 455 | int c_fullsend; | ^~~~~~~~~~ -
server/sv_main.c:556:26: warning: variable ‘p’ set but not used [-Wunused-but-set-variable=] 556 | char *p; | ^ -
server/sv_user.c:369:5: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 369 | while (name[(name_length = strlen(name))] == '.' || name[name_length] == '/' ) | ^~~~~ -
server/sv_world.c:362:33: warning: variable ‘count’ set but not used [-Wunused-but-set-variable=] 362 | int count; | ^~~~~ -
server/sv_world.c:441:26: warning: variable ‘angles’ set but not used [-Wunused-but-set-variable=] 441 | float *angles; | ^~~~~~ -
server/sv_main.c:198:33: warning: ‘__strncat_chk’ specified bound depends on the length of the source argument [-Wstringop-overflow=] 198 | strncat( status, player, strlen(player) ); | ^ -
server/sv_main.c:228:49: warning: ‘__strncat_chk’ specified bound depends on the length of the source argument [-Wstringop-overflow=] 228 | strncat( status, player, strlen(player) ); | ^ -
server/sv_main.c:1272:25: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 1272 | strncpy (master_status[0].name, sv_master->string, MAX_MASTER_LEN); | ^ -
unix/q_shunix.c:373:58: warning: ‘__sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 373 | sprintf (findpath, "%s/%s", findbase, d->d_name); | ^ -
unix/sys_unix.c:119:13: warning: ‘undo_setuid’ defined but not used [-Wunused-function] 119 | static void undo_setuid( void ) | ^~~~~~~~~~~ -
unix/sys_unix.c:101:13: warning: ‘do_setuid’ defined but not used [-Wunused-function] 101 | static void do_setuid( void ) | ^~~~~~~~~ -
unix/sys_unix.c:84:13: warning: ‘init_setuid’ defined but not used [-Wunused-function] 84 | static void init_setuid( void ) | ^~~~~~~~~~~ -
game/acesrc/acebot_ai.c:579:54: warning: comparison with string literal results in unspecified behavior [-Waddress] 579 | if(target->classname == "hbomb") | ^~ -
game/acesrc/acebot_ai.c:581:59: warning: comparison with string literal results in unspecified behavior [-Waddress] 581 | else if(target->classname == "alien computer") | ^~ -
game/acesrc/acebot_ai.c:583:59: warning: comparison with string literal results in unspecified behavior [-Waddress] 583 | else if(target->classname == "alien powersrc") | ^~ -
game/acesrc/acebot_ai.c:585:59: warning: comparison with string literal results in unspecified behavior [-Waddress] 585 | else if(target->classname == "alien ammodepot") | ^~ -
game/acesrc/acebot_ai.c:587:59: warning: comparison with string literal results in unspecified behavior [-Waddress] 587 | else if(target->classname == "alien backupgen") | ^~ -
game/acesrc/acebot_ai.c:592:54: warning: comparison with string literal results in unspecified behavior [-Waddress] 592 | if(target->classname == "abomb") | ^~ -
game/acesrc/acebot_ai.c:594:59: warning: comparison with string literal results in unspecified behavior [-Waddress] 594 | else if(target->classname == "human computer") | ^~ -
game/acesrc/acebot_ai.c:596:59: warning: comparison with string literal results in unspecified behavior [-Waddress] 596 | else if(target->classname == "human powersrc") | ^~ -
game/acesrc/acebot_ai.c:598:59: warning: comparison with string literal results in unspecified behavior [-Waddress] 598 | else if(target->classname == "human ammodepot") | ^~ -
game/acesrc/acebot_ai.c:600:59: warning: comparison with string literal results in unspecified behavior [-Waddress] 600 | else if(target->classname == "human backupgen") | ^~ -
game/acesrc/acebot_ai.c:815:52: warning: comparison with string literal results in unspecified behavior [-Waddress] 815 | && (self->enemy->classname == "human computer" || self->enemy->classname == "human powersrc" | ^~ -
game/acesrc/acebot_ai.c:815:98: warning: comparison with string literal results in unspecified behavior [-Waddress] 815 | && (self->enemy->classname == "human computer" || self->enemy->classname == "human powersrc" | ^~ -
game/acesrc/acebot_ai.c:816:51: warning: comparison with string literal results in unspecified behavior [-Waddress] 816 | || self->enemy->classname == "human ammodepot")) | ^~ -
game/acesrc/acebot_ai.c:825:52: warning: comparison with string literal results in unspecified behavior [-Waddress] 825 | && (self->enemy->classname == "alien computer" || self->enemy->classname == "alien powersrc" | ^~ -
game/acesrc/acebot_ai.c:825:98: warning: comparison with string literal results in unspecified behavior [-Waddress] 825 | && (self->enemy->classname == "alien computer" || self->enemy->classname == "alien powersrc" | ^~ -
game/acesrc/acebot_ai.c:826:51: warning: comparison with string literal results in unspecified behavior [-Waddress] 826 | || self->enemy->classname == "alien ammodepot")) | ^~ -
game/acesrc/acebot_cmds.c:156:25: warning: variable ‘len’ set but not used [-Wunused-but-set-variable=] 156 | int len; | ^~~ -
game/acesrc/acebot_cmds.c:185:13: warning: variable ‘len’ set but not used [-Wunused-but-set-variable=] 185 | int len; | ^~~ -
game/acesrc/acebot_cmds.c:205:13: warning: variable ‘len’ set but not used [-Wunused-but-set-variable=] 205 | int len; | ^~~ -
game/acesrc/acebot_cmds.c:231:25: warning: variable ‘len’ set but not used [-Wunused-but-set-variable=] 231 | int len; | ^~~ -
game/acesrc/acebot_movement.c:869:20: warning: ‘ktgt_acc’ defined but not used [-Wunused-const-variable=] 869 | static const float ktgt_acc = 0.35; | ^~~~~~~~ -
game/acesrc/acebot_movement.c:864:20: warning: ‘ktgt_ofs’ defined but not used [-Wunused-const-variable=] 864 | static const float ktgt_ofs = 20.0f; //radius of hole | ^~~~~~~~ -
game/acesrc/acebot_movement.c:863:20: warning: ‘ktgt_scale’ defined but not used [-Wunused-const-variable=] 863 | static const float ktgt_scale = 250.0f; //scaling factor | ^~~~~~~~~~ -
game/acesrc/acebot_nodes.c:608:16: warning: variable ‘sz’ set but not used [-Wunused-but-set-variable=] 608 | size_t sz; | ^~ -
game/acesrc/acebot_nodes.c:652:16: warning: variable ‘sz’ set but not used [-Wunused-but-set-variable=] 652 | size_t sz; | ^~ -
game/acesrc/acebot_spawn.c:538:18: warning: variable ‘bot_spawned’ set but not used [-Wunused-but-set-variable=] 538 | qboolean bot_spawned; | ^~~~~~~~~~~ -
game/acesrc/acebot_spawn.c:648:18: warning: variable ‘bot_spawned’ set but not used [-Wunused-but-set-variable=] 648 | qboolean bot_spawned; | ^~~~~~~~~~~ -
game/acesrc/acebot_spawn.c:131:40: warning: ‘%s’ directive writing up to 63 bytes into a region of size 56 [-Wformat-overflow=] 131 | sprintf(stem, "botinfo/%s.tmp", level.mapname); | ^~ ~~~~~~~~~~~~~ -
game/g_ctf.c:231:23: warning: unused variable ‘volume’ [-Wunused-variable] 231 | float volume = 1.0; | ^~~~~~ -
game/g_combat.c:258:17: warning: variable ‘height’ set but not used [-Wunused-but-set-variable=] 258 | int height; | ^~~~~~ -
game/g_main.c:831:21: warning: variable ‘l’ set but not used [-Wunused-but-set-variable=] 831 | int l; | ^ -
game/g_main.c:1112:41: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1112 | if (!cl_ent->inuse || cl_ent->is_bot) | ^~ -
game/g_main.c:1126:41: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1126 | if (!cl_ent->inuse || cl_ent->is_bot) | ^~ -
game/g_main.c:1140:41: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1140 | if (!cl_ent->inuse || cl_ent->is_bot) | ^~ -
game/g_misc.c:1142:25: warning: variable ‘count’ set but not used [-Wunused-but-set-variable=] 1142 | int count; | ^~~~~ -
game/g_misc.c:1141:17: warning: variable ‘last_movedir’ set but not used [-Wunused-but-set-variable=] 1141 | vec3_t last_movedir; | ^~~~~~~~~~~~ -
game/g_misc.c:1297:27: warning: comparison with string literal results in unspecified behavior [-Waddress] 1297 | if(ent->classname == "alien computer") | ^~ -
game/g_misc.c:1315:28: warning: comparison with string literal results in unspecified behavior [-Waddress] 1315 | if(self->classname == "alien computer") | ^~ -
game/g_misc.c:1330:28: warning: comparison with string literal results in unspecified behavior [-Waddress] 1330 | if(self->classname == "alien computer") | ^~ -
game/g_misc.c:1421:27: warning: comparison with string literal results in unspecified behavior [-Waddress] 1421 | if(ent->classname == "alien powersrc") | ^~ -
game/g_misc.c:1438:28: warning: comparison with string literal results in unspecified behavior [-Waddress] 1438 | if(self->classname == "alien powersrc") | ^~ -
game/g_misc.c:1453:28: warning: comparison with string literal results in unspecified behavior [-Waddress] 1453 | if(self->classname == "alien powersrc") | ^~ -
game/g_misc.c:1544:27: warning: comparison with string literal results in unspecified behavior [-Waddress] 1544 | if(ent->classname == "alien ammodepot") | ^~ -
game/g_misc.c:1560:28: warning: comparison with string literal results in unspecified behavior [-Waddress] 1560 | if(self->classname == "alien ammodepot") | ^~ -
game/g_misc.c:1575:28: warning: comparison with string literal results in unspecified behavior [-Waddress] 1575 | if(self->classname == "alien ammodepot") | ^~ -
game/g_misc.c:1666:27: warning: comparison with string literal results in unspecified behavior [-Waddress] 1666 | if(ent->classname == "alien backupgen") | ^~ -
game/g_misc.c:1695:28: warning: comparison with string literal results in unspecified behavior [-Waddress] 1695 | if(self->classname == "alien backupgen") | ^~ -
game/g_misc.c:1708:28: warning: comparison with string literal results in unspecified behavior [-Waddress] 1708 | if(self->classname == "alien backupgen") | ^~ -
game/g_misc.c:1823:43: warning: comparison with string literal results in unspecified behavior [-Waddress] 1823 | if(ent->classname == "human powersrc") | ^~ -
game/g_misc.c:1830:48: warning: comparison with string literal results in unspecified behavior [-Waddress] 1830 | else if(ent->classname == "human ammodepot") | ^~ -
game/g_misc.c:1837:48: warning: comparison with string literal results in unspecified behavior [-Waddress] 1837 | else if(ent->classname == "human computer") | ^~ -
game/g_misc.c:1844:48: warning: comparison with string literal results in unspecified behavior [-Waddress] 1844 | else if(ent->classname == "human backupgen") | ^~ -
game/g_misc.c:1851:48: warning: comparison with string literal results in unspecified behavior [-Waddress] 1851 | else if(ent->classname == "abomb") | ^~ -
game/g_misc.c:1862:43: warning: comparison with string literal results in unspecified behavior [-Waddress] 1862 | if(ent->classname == "alien powersrc") | ^~ -
game/g_misc.c:1869:48: warning: comparison with string literal results in unspecified behavior [-Waddress] 1869 | else if(ent->classname == "alien ammodepot") | ^~ -
game/g_misc.c:1876:48: warning: comparison with string literal results in unspecified behavior [-Waddress] 1876 | else if(ent->classname == "alien computer") | ^~ -
game/g_misc.c:1883:48: warning: comparison with string literal results in unspecified behavior [-Waddress] 1883 | else if(ent->classname == "alien backupgen") | ^~ -
game/g_misc.c:1890:48: warning: comparison with string literal results in unspecified behavior [-Waddress] 1890 | else if(ent->classname == "hbomb") | ^~ -
game/g_monster.c:697:1: warning: missing braces around initializer [-Wmissing-braces] 697 | { | ^ 698 | ai_stand, 0, NULL | { 699 | }; | } -
game/g_monster.c:711:1: warning: missing braces around initializer [-Wmissing-braces] 711 | { | ^ 712 | ai_run, FISH_SWIM_SPEED, NULL, | { } 713 | ai_run, FISH_SWIM_SPEED, NULL, | { } 714 | ai_run, FISH_SWIM_SPEED, NULL, | { } 715 | ai_run, FISH_SWIM_SPEED, NULL, | { } 716 | ai_run, FISH_SWIM_SPEED, NULL, | { } 717 | ai_run, FISH_SWIM_SPEED, NULL, | { } 718 | ai_run, FISH_SWIM_SPEED, NULL, | { } 719 | ai_run, FISH_SWIM_SPEED, NULL, | { } 720 | ai_run, FISH_SWIM_SPEED, NULL, | { } 721 | ai_run, FISH_SWIM_SPEED, NULL, | { } 722 | ai_run, FISH_SWIM_SPEED, NULL, | { } 723 | ai_run, FISH_SWIM_SPEED, NULL, | { } 724 | ai_run, FISH_SWIM_SPEED, NULL, | { } 725 | ai_run, FISH_SWIM_SPEED, NULL, | { } 726 | ai_run, FISH_SWIM_SPEED, NULL, | { } 727 | ai_run, FISH_SWIM_SPEED, NULL, | { } 728 | ai_run, FISH_SWIM_SPEED, NULL, | { } 729 | ai_run, FISH_SWIM_SPEED, NULL | { 730 | }; | } -
game/g_monster.c:740:1: warning: missing braces around initializer [-Wmissing-braces] 740 | { | ^ 741 | ai_walk, 4, NULL, | { } 742 | ai_walk, 4, NULL, | { } 743 | ai_walk, 4, NULL, | { } 744 | ai_walk, 4, NULL, | { } 745 | ai_walk, 4, NULL, | { } 746 | ai_walk, 4, NULL, | { } 747 | ai_walk, 4, NULL, | { } 748 | ai_walk, 4, NULL, | { } 749 | ai_walk, 4, NULL, | { } 750 | ai_walk, 4, NULL, | { } 751 | ai_walk, 4, NULL, | { } 752 | ai_walk, 4, NULL, | { } 753 | ai_walk, 4, NULL, | { } 754 | ai_walk, 4, NULL, | { } 755 | ai_walk, 4, NULL, | { } 756 | ai_walk, 4, NULL, | { } 757 | ai_walk, 4, NULL, | { } 758 | ai_walk, 4, NULL, | { } 759 | ai_walk, 4, NULL, | { } 760 | ai_walk, 4, NULL, | { } 761 | ai_walk, 4, NULL, | { } 762 | ai_walk, 4, NULL, | { } 763 | ai_walk, 4, NULL, | { } 764 | ai_walk, 4, NULL, | { } 765 | ai_walk, 4, NULL, | { } 766 | ai_walk, 4, NULL, | { } 767 | ai_walk, 4, NULL, | { } 768 | ai_walk, 4, NULL, | { } 769 | ai_walk, 4, NULL, | { } 770 | ai_walk, 4, NULL, | { } 771 | ai_walk, 4, NULL, | { } 772 | ai_walk, 4, NULL, | { } 773 | ai_walk, 4, NULL, | { } 774 | ai_walk, 4, NULL, | { } 775 | ai_walk, 4, NULL, | { } 776 | ai_walk, 4, NULL, | { } 777 | ai_walk, 4, NULL, | { } 778 | ai_walk, 4, NULL, | { } 779 | ai_walk, 4, NULL, | { } 780 | ai_walk, 4, NULL, | { } 781 | ai_walk, 4, NULL, | { } 782 | ai_walk, 4, NULL, | { } 783 | ai_walk, 4, NULL, | { } 784 | ai_walk, 4, NULL, | { } 785 | ai_walk, 4, NULL, | { } 786 | ai_walk, 4, NULL, | { } 787 | ai_walk, 4, NULL, | { } 788 | ai_walk, 4, NULL, | { } 789 | ai_walk, 4, NULL, | { } 790 | ai_walk, 4, NULL, | { } 791 | ai_walk, 4, NULL, | { } 792 | ai_walk, 4, NULL, | { } 793 | ai_walk, 4, NULL, | { } 794 | ai_walk, 4, NULL, | { } 795 | ai_walk, 4, NULL | { 796 | }; | } -
game/g_monster.c:814:1: warning: missing braces around initializer [-Wmissing-braces] 814 | { | ^ 815 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 816 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 817 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 818 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 819 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 820 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 821 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 822 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 823 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 824 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 825 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 826 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 827 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 828 | ai_charge, FISH_SWIM_SPEED, fish_bite, | { } 829 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 830 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 831 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 832 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 833 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 834 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 835 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 836 | ai_charge, FISH_SWIM_SPEED, NULL, | { } 837 | ai_charge, FISH_SWIM_SPEED, fish_bite, | { } 838 | ai_charge, FISH_SWIM_SPEED, NULL | { 839 | }; | } -
game/g_main.c:444:21: warning: ‘strchr’ argument missing terminating nul [-Wstringop-overread] 444 | if (strchr(allowedChars, copy[i]) == NULL) | ^~~~~~ -
game/g_cmds.c:1142:53: warning: ‘%s’ directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] 1142 | sprintf(tauntsound, "taunts/%s/taunt%i.wav", playermodel, index); | ^~ ~~~~~~~~~~~ -
game/g_phys.c:712:25: warning: variable ‘old_origin’ set but not used [-Wunused-but-set-variable=] 712 | vec3_t old_origin; | ^~~~~~~~~~ -
game/g_phys.c:710:25: warning: variable ‘wasinwater’ set but not used [-Wunused-but-set-variable=] 710 | qboolean wasinwater; | ^~~~~~~~~~ -
game/g_phys.c:847:25: warning: variable ‘hitsound’ set but not used [-Wunused-but-set-variable=] 847 | qboolean hitsound = false; | ^~~~~~~~ -
game/g_main.c:806:24: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 806 | buffer[length] = 0; | ~~~~~~~~~~~~~~~^~~ -
game/g_spawn.c:767:17: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation] 767 | strncpy (level.level_name, ent->message, sizeof(level.level_name)); | ^ -
game/g_target.c:393:13: warning: variable ‘effect’ set but not used [-Wunused-but-set-variable=] 393 | int effect; | ^~~~~~ -
game/g_trigger.c:547:61: warning: comparison with string literal results in unspecified behavior [-Waddress] 547 | if((other->s.effects & EF_GIB) || (other->classname == "g_gib")) | ^~ -
game/g_unlagged.c:84:13: warning: ‘TimeShiftLerp’ defined but not used [-Wunused-function] 84 | static void TimeShiftLerp(float frac, const vec3_t start, const vec3_t end, vec3_t result) { | ^~~~~~~~~~~~~ -
game/g_weapon.c:446:25: warning: variable ‘water’ set but not used [-Wunused-but-set-variable=] 446 | qboolean water; | ^~~~~ -
game/g_weapon.c:836:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 836 | if ((tr.ent != self) && (tr.ent->takedamage)) | ^~ -
game/g_weapon.c:966:25: warning: variable ‘water’ set but not used [-Wunused-but-set-variable=] 966 | qboolean water; | ^~~~~ -
game/g_weapon.c:1041:25: warning: variable ‘water’ set but not used [-Wunused-but-set-variable=] 1041 | qboolean water; | ^~~~~ -
game/g_weapon.c:1391:18: warning: variable ‘target’ set but not used [-Wunused-but-set-variable=] 1391 | edict_t *target = NULL; | ^~~~~~ -
game/g_weapon.c:1473:18: warning: variable ‘target’ set but not used [-Wunused-but-set-variable=] 1473 | edict_t *target = NULL; | ^~~~~~ -
game/g_weapon.c:1842:17: warning: variable ‘points’ set but not used [-Wunused-but-set-variable=] 1842 | float points; | ^~~~~~ -
game/g_weapon.c:2139:36: warning: comparison with string literal results in unspecified behavior [-Waddress] 2139 | if(self->classname == "abomb") | ^~ -
game/g_weapon.c:2228:28: warning: comparison with string literal results in unspecified behavior [-Waddress] 2228 | if(self->classname == "abomb") | ^~ -
game/g_target.c:118:17: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation] 118 | strncpy (buffer, st.noise, sizeof(buffer)); | ^ -
game/p_client.c:843:17: warning: variable ‘gib_effect’ set but not used [-Wunused-but-set-variable=] 843 | int gib_effect = EF_GREENGIB; | ^~~~~~~~~~ -
game/p_client.c:840:18: warning: variable ‘info’ set but not used [-Wunused-but-set-variable=] 840 | char *info; | ^~~~ -
game/p_client.c:1834:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 1834 | if (sv_botkickthreshold && sv_botkickthreshold->integer || g_duel->integer) | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
game/p_hud.c:667:31: warning: unused variable ‘k’ [-Wunused-variable] 667 | int i, j, k; | ^ -
game/p_hud.c:993:26: warning: variable ‘item’ set but not used [-Wunused-but-set-variable=] 993 | gitem_t *item; | ^~~~ -
game/p_client.c:3163:13: warning: ‘PrintPmove’ defined but not used [-Wunused-function] 3163 | static void PrintPmove (pmove_t *pm) | ^~~~~~~~~~ -
game/p_weapon.c:1655:25: warning: variable ‘radius_damage’ set but not used [-Wunused-but-set-variable=] 1655 | int radius_damage; | ^~~~~~~~~~~~~ -
game/p_weapon.c:1654:17: warning: variable ‘damage_radius’ set but not used [-Wunused-but-set-variable=] 1654 | float damage_radius; | ^~~~~~~~~~~~~ -
game/p_weapon.c:1653:25: warning: variable ‘damage’ set but not used [-Wunused-but-set-variable=] 1653 | int damage; | ^~~~~~ -
unix/minizip/ioapi.c:212:6: warning: old-style function definition [-Wold-style-definition] 212 | void fill_fopen_filefunc (pzlib_filefunc_def) | ^~~~~~~~~~~~~~~~~~~ -
unix/minizip/miniunz.c:71:6: warning: old-style function definition [-Wold-style-definition] 71 | void change_file_date(filename,dosdate,tmu_date) | ^~~~~~~~~~~~~~~~ -
unix/minizip/miniunz.c:112:5: warning: old-style function definition [-Wold-style-definition] 112 | int mymkdir(dirname) | ^~~~~~~ -
unix/minizip/miniunz.c:126:5: warning: old-style function definition [-Wold-style-definition] 126 | int makedir (newdir) | ^~~~~~~ -
unix/minizip/miniunz.c:222:5: warning: old-style function definition [-Wold-style-definition] 222 | int do_list(uf) | ^~~~~~~ -
unix/minizip/miniunz.c:300:5: warning: old-style function definition [-Wold-style-definition] 300 | int do_extract_currentfile(uf,popt_extract_without_path,popt_overwrite,password) | ^~~~~~~~~~~~~~~~~~~~~~ -
unix/minizip/miniunz.c:315:11: warning: unused variable ‘ratio’ [-Wunused-variable] 315 | uLong ratio=0; | ^~~~~ -
unix/minizip/miniunz.c:464:5: warning: old-style function definition [-Wold-style-definition] 464 | int do_extract(uf,opt_extract_without_path,opt_overwrite,password) | ^~~~~~~~~~ -
unix/minizip/miniunz.c:473:11: warning: unused variable ‘fout’ [-Wunused-variable] 473 | FILE* fout=NULL; | ^~~~ -
unix/minizip/miniunz.c:500:5: warning: old-style function definition [-Wold-style-definition] 500 | int do_extract_onefile(uf,filename,opt_extract_without_path,opt_overwrite,password) | ^~~~~~~~~~~~~~~~~~ -
unix/minizip/miniunz.c:507:9: warning: unused variable ‘err’ [-Wunused-variable] 507 | int err = UNZ_OK; | ^~~ -
unix/minizip/miniunz.c:523:5: warning: old-style function definition [-Wold-style-definition] 523 | int main(argc,argv) | ^~~~ -
unix/minizip/minizip.c:85:7: warning: old-style function definition [-Wold-style-definition] 85 | uLong filetime(f, tmzip, dt) | ^~~~~~~~ -
unix/minizip/minizip.c:140:5: warning: old-style function definition [-Wold-style-definition] 140 | int check_exist_file(filename) | ^~~~~~~~~~~~~~~~ -
unix/minizip/minizip.c:178:18: warning: variable ‘total_read’ set but not used [-Wunused-but-set-variable=] 178 | unsigned long total_read = 0; | ^~~~~~~~~~ -
unix/minizip/minizip.c:218:9: warning: unused variable ‘n’ [-Wunused-variable] 218 | int n = fseeko64(pFile, 0, SEEK_END); | ^ -
unix/minizip/minizip.c:233:5: warning: old-style function definition [-Wold-style-definition] 233 | int main(argc,argv) | ^~~~ -
game/p_client.c:3018:9: warning: ‘strncpy’ output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation] 3018 | strncpy (ent->client->pers.userinfo, userinfo, sizeof(ent->client->pers.userinfo)-1); | ^ -
unix/minizip/minizip.c:482:20: warning: ‘fin’ may be used uninitialized [-Wmaybe-uninitialized] 482 | if (fin) | ^ -
unix/minizip/mztools.c:30:20: warning: old-style function definition [-Wold-style-definition] 30 | extern int ZEXPORT unzRepair(file, fileOut, fileOutTmp, nRecovered, bytesRecovered) | ^~~~~~~~~ -
unix/minizip/zip.c:521:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 521 | for (i=(int)uReadSize-3; (i--)>0;) | ^~~ -
unix/minizip/zip.c:1475:21: warning: variable ‘bBreak’ set but not used [-Wunused-but-set-variable=] 1475 | int bBreak = 0; | ^~~~~~ -
game/p_client.c:1999:37: warning: ‘%s’ directive writing up to 255 bytes into a region of size 248 [-Wformat-overflow=] 1999 | sprintf(modelpath, "players/%s/human", ent->charModel); | ^~ -
game/p_client.c:2059:45: warning: ‘%s’ directive writing up to 255 bytes into a region of size 248 [-Wformat-overflow=] 2059 | sprintf(modelpath, "players/%s/robot", ent->charModel); | ^~ -
game/p_client.c:2089:69: warning: ‘%s’ directive writing up to 255 bytes into a region of size 248 [-Wformat-overflow=] 2089 | sprintf(modelpath, "players/%s/alien", ent->charModel); | ^~ -
client/cl_ents.c:1587:26: warning: variable ‘ent’ set but not used [-Wunused-but-set-variable=] 1587 | centity_t *ent; | ^~~ -
client/cl_ents.c:1818:21: warning: variable ‘dir’ set but not used [-Wunused-but-set-variable=] 1818 | vec3_t org, dir; | ^~~ -
client/cl_fx.c:705:26: warning: variable ‘center’ set but not used [-Wunused-but-set-variable=] 705 | particle_t *center; | ^~~~~~ -
client/cl_fx.c:3131:25: warning: variable ‘len’ set but not used [-Wunused-but-set-variable=] 3131 | float len; | ^~~ -
client/cl_fx.c:3476:43: warning: variable ‘vec2’ set but not used [-Wunused-but-set-variable=] 3476 | vec3_t vec, point, last, vec2; | ^~~~ -
client/cl_fx.c:3476:30: warning: variable ‘point’ set but not used [-Wunused-but-set-variable=] 3476 | vec3_t vec, point, last, vec2; | ^~~~~ -
client/cl_fx.c:3584:30: warning: variable ‘point’ set but not used [-Wunused-but-set-variable=] 3584 | vec3_t vec, point, last, vec2; | ^~~~~ -
client/cl_fx.c:3889:25: warning: variable ‘move’ set but not used [-Wunused-but-set-variable=] 3889 | vec3_t move; | ^~~~ -
client/cl_fx.c:4230:37: warning: variable ‘cr’ set but not used [-Wunused-but-set-variable=] 4230 | float sr, sp, sy, cr, cp, cy; | ^~ -
client/cl_fx.c:4230:25: warning: variable ‘sr’ set but not used [-Wunused-but-set-variable=] 4230 | float sr, sp, sy, cr, cp, cy; | ^~ -
client/cl_http.c:135:17: warning: ‘hostname’ may be used uninitialized [-Wmaybe-uninitialized] 135 | Com_sprintf(url, sizeof(url) - 1, "%s/%s", hostname, filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
client/cl_main.c:2478:20: warning: variable ‘render_counter’ set but not used [-Wunused-but-set-variable=] 2478 | static int render_counter = 0; | ^~~~~~~~~~~~~~ -
client/cl_parse.c:447:64: warning: variable ‘writeResult’ set but not used [-Wunused-but-set-variable=] 447 | size_t writeResult; | ^~~~~~~~~~~ -
client/cl_irc.c:1407:17: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 508 [-Wstringop-truncation] 1407 | strncpy( IRC_User.nick , IRC_String( arg_values[ 0 ] ) , 15 ); | ^ -
client/cl_parse.c:201:40: warning: ‘.iqm’ directive writing 4 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 201 | sprintf(shortname2, "%s.iqm", shortname); | ^~~~ -
client/cl_parse.c:187:40: warning: ‘.tga’ directive writing 4 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 187 | sprintf(shortname2, "%s.tga", shortname); | ^~~~ -
client/cl_irc.c:1753:34: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 1753 | IRC_User.nick[j] = c; | ~~~~~~~~~~~~~~~~~^~~ -
client/qmenu.h:39:20: warning: ‘LINK_STATUS_NAMES’ defined but not used [-Wunused-variable] 39 | static const char *LINK_STATUS_NAMES[] = { | ^~~~~~~~~~~~~~~~~ -
client/cl_stats.c:426:16: warning: variable ‘sz’ set but not used [-Wunused-but-set-variable=] 426 | size_t sz; | ^~ -
client/cl_tent.c:113:25: warning: variable ‘cnt’ set but not used [-Wunused-but-set-variable=] 113 | int cnt; | ^~~ -
client/cl_tent.c:178:25: warning: variable ‘magnitude’ set but not used [-Wunused-but-set-variable=] 178 | int magnitude; | ^~~~~~~~~ -
client/cl_tent.c:177:25: warning: variable ‘cnt’ set but not used [-Wunused-but-set-variable=] 177 | int cnt; | ^~~ -
client/cl_tent.c:231:25: warning: variable ‘magnitude’ set but not used [-Wunused-but-set-variable=] 231 | int magnitude; | ^~~~~~~~~ -
client/cl_tent.c:230:25: warning: variable ‘cnt’ set but not used [-Wunused-but-set-variable=] 230 | int cnt; | ^~~ -
client/cl_tent.c:283:25: warning: variable ‘magnitude’ set but not used [-Wunused-but-set-variable=] 283 | int magnitude; | ^~~~~~~~~ -
client/cl_tent.c:282:25: warning: variable ‘cnt’ set but not used [-Wunused-but-set-variable=] 282 | int cnt; | ^~~ -
client/cl_updates.c:233:19: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 233 | while(end > str && isblank((unsigned char)*end) || *end == '\n' || *end == '\r') end--; | ^ -
client/cl_updates.c:315:9: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] 315 | strncpy (versionstr, server_vstring, sizeof(versionstr)); | ^ -
client/menu.c:1750:22: warning: comparison with string literal results in unspecified behavior [-Waddress] 1750 | if (cvarname == "vid_fullscreen" && | ^~ -
client/menu.c:1805:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1805 | cvarval = strchr(self->itemnames[self->curvalue], '\0')+1; | ^ -
client/menu.c:1930:23: warning: comparison with string literal results in unspecified behavior [-Waddress] 1930 | if ((cvarname == "vid_width" || cvarname == "vid_height") && | ^~ -
client/menu.c:1930:50: warning: comparison with string literal results in unspecified behavior [-Waddress] 1930 | if ((cvarname == "vid_width" || cvarname == "vid_height") && | ^~ -
client/menu.c:2014:50: warning: comparison with string literal results in unspecified behavior [-Waddress] 2014 | if (optionname->cvarname == "vid_fullscreen" && | ^~ -
client/menu.c:2059:45: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 2059 | if (item->itemnames == font_names) | ^~ -
client/menu.c:2097:52: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2097 | item->generic.localptrs[0] = limit; | ^ -
client/menu.c:2109:52: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2109 | item->generic.localptrs[0] = fieldsize; | ^ -
client/menu.c:2137:64: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2137 | char *corresponding_cvar_val = strchr(item->itemnames[i], '\0')+1; | ^~~~~~ -
/usr/include/bits/string_fortified.h:93:10: warning: ‘__stpcpy_chk’ accessing 1 byte at offsets [0, 8192] and [0, 7936] may overlap 1 byte at offset 0 [-Wrestrict] 93 | return __builtin___strcpy_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
client/qmenu.c:635:9: warning: enumeration value ‘MTYPE_VERT_SCROLLBAR’ not handled in switch [-Wswitch] 635 | switch ( self->type ) | ^~~~~~ -
client/qmenu.c:952:17: warning: enumeration value ‘MTYPE_VERT_SCROLLBAR’ not handled in switch [-Wswitch] 952 | switch ( item->generic.type ) | ^~~~~~ -
client/menu.c:6915:17: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6915 | system(command); | ^~~~~~~~~~~~~~~ -
client/qmenu.c:1471:17: warning: enumeration value ‘MTYPE_VERT_SCROLLBAR’ not handled in switch [-Wswitch] 1471 | switch ( item->type ) | ^~~~~~ -
client/qmenu.c:1471:17: warning: enumeration value ‘MTYPE_ACTION’ not handled in switch [-Wswitch]
-
client/qmenu.c:1471:17: warning: enumeration value ‘MTYPE_FIELD’ not handled in switch [-Wswitch]
-
client/qmenu.c:1471:17: warning: enumeration value ‘MTYPE_NOT_INTERACTIVE’ not handled in switch [-Wswitch]
-
client/qmenu.c:1471:17: warning: enumeration value ‘MTYPE_SUBMENU’ not handled in switch [-Wswitch]
-
client/menu.c:4660:13: warning: ‘AddressBookFunc’ defined but not used [-Wunused-function] 4660 | static void AddressBookFunc (UNUSED void *self) | ^~~~~~~~~~~~~~~ -
client/menu.c:3903:13: warning: ‘M_Menu_Game_prototype_f’ defined but not used [-Wunused-function] 3903 | static void M_Menu_Game_prototype_f (void) | ^~~~~~~~~~~~~~~~~~~~~~~ -
client/menu.c:167:14: warning: ‘menu_in_sound’ defined but not used [-Wunused-variable] 167 | static char *menu_in_sound = "misc/menu1.wav"; | ^~~~~~~~~~~~~ -
client/snd_openal.c:1466:16: warning: variable ‘result’ set but not used [-Wunused-but-set-variable=] 1466 | ALenum result; | ^~~~~~ -
client/snd_file.c:435:25: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 435 | strncpy( pfile_ext, ".ogg", 4 ); | ^ -
client/snd_file.c:438:33: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 438 | strncpy( pfile_ext, ".wav", 4 ); | ^ -
ref_gl/r_decals.c:558:1: warning: multi-line comment [-Wcomment] 558 | // /\ | ^ -
ref_gl/r_image.c:819:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 819 | if (crjpg_corrupted) | ^~ -
client/snd_openal.c:1232:17: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 1232 | strncpy( namebuffer, &name[1], MAX_OSPATH ); // strip off '#' | ^ -
client/snd_openal.c:1986:25: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation] 1986 | strncpy( model, ptr, MAX_QPATH ); | ^ -
ref_gl/r_iqm.c:87:24: warning: variable ‘sz’ set but not used [-Wunused-but-set-variable=] 87 | size_t sz; | ^~ -
ref_gl/r_iqm.c:74:17: warning: ‘IQM_ReadSkinFile’ defined but not used [-Wunused-function] 74 | static qboolean IQM_ReadSkinFile(char skin_file[MAX_OSPATH], char *skinpath) | ^~~~~~~~~~~~~~~~ -
ref_gl/r_decals.c:787:21: warning: ‘x’ may be used uninitialized [-Wmaybe-uninitialized] 787 | int x, y, newh; | ^ -
ref_gl/r_decals.c:824:71: warning: ‘y’ may be used uninitialized [-Wmaybe-uninitialized] 824 | groups[k].int_maxs[j] = groups[k].int_mins[j] + groups[k].size_used[j]; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -
ref_gl/r_light.c:360:39: warning: passing argument 1 of ‘CM_TerrainLightPoint’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 360 | CM_TerrainLightPoint (p, end, color); | ^ -
ref_gl/r_light.c:363:90: warning: passing argument 2 of ‘RecursiveLightPoint’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 363 | if (r_worldmodel->lightdata && RecursiveLightPoint (r_worldmodel->nodes, p, end, &uses_lightstyle) != -1) | ^ -
ref_gl/r_light.c:374:25: warning: variable ‘light’ set but not used [-Wunused-but-set-variable=] 374 | float light; | ^~~~~ -
ref_gl/r_light.c:446:26: warning: variable ‘style’ set but not used [-Wunused-but-set-variable=] 446 | lightstyle_t *style; | ^~~~~ -
ref_gl/r_light.c:442:37: warning: variable ‘old_dest’ set but not used [-Wunused-but-set-variable=] 442 | byte *lightmap, *old_dest; | ^~~~~~~~ -
ref_gl/r_image.c:1063:75: warning: ‘upper_left_alpha’ may be used uninitialized [-Wmaybe-uninitialized] 1063 | else if ((upper_left_alpha > ALPHATEST_THRESHOLD) != (out[3] > ALPHATEST_THRESHOLD)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ref_gl/r_main.c:232:29: warning: argument 1 of type ‘char *’ declared as a pointer [-Warray-parameter=] 232 | void R_ReadFogScript( char *config_file ) | ~~~~~~^~~~~~~~~~~ -
ref_gl/r_main.c:332:31: warning: argument 1 of type ‘char *’ declared as a pointer [-Warray-parameter=] 332 | void R_ReadMusicScript( char *config_file ) | ~~~~~~^~~~~~~~~~~ -
ref_gl/r_main.c:1491:37: warning: pointer targets in passing argument 1 of ‘GLimp_SetMode’ differ in signedness [-Wpointer-sign] 1491 | if ( ( err = GLimp_SetMode( &vid.width, &vid.height, gl_mode->integer, windowmode ) ) == rserr_ok ) | ^~~~~~~~~~ | | | int * -
ref_gl/r_main.c:1491:49: warning: pointer targets in passing argument 2 of ‘GLimp_SetMode’ differ in signedness [-Wpointer-sign] 1491 | if ( ( err = GLimp_SetMode( &vid.width, &vid.height, gl_mode->integer, windowmode ) ) == rserr_ok ) | ^~~~~~~~~~~ | | | int * -
ref_gl/r_main.c:1502:53: warning: pointer targets in passing argument 1 of ‘GLimp_SetMode’ differ in signedness [-Wpointer-sign] 1502 | if ( ( err = GLimp_SetMode( &vid.width, &vid.height, gl_mode->integer, windowmode_windowed ) ) == rserr_ok ) | ^~~~~~~~~~ | | | int * -
ref_gl/r_main.c:1502:65: warning: pointer targets in passing argument 2 of ‘GLimp_SetMode’ differ in signedness [-Wpointer-sign] 1502 | if ( ( err = GLimp_SetMode( &vid.width, &vid.height, gl_mode->integer, windowmode_windowed ) ) == rserr_ok ) | ^~~~~~~~~~~ | | | int * -
ref_gl/r_main.c:1513:45: warning: pointer targets in passing argument 1 of ‘GLimp_SetMode’ differ in signedness [-Wpointer-sign] 1513 | if ( ( err = GLimp_SetMode( &vid.width, &vid.height, gl_state.prev_mode, windowmode_windowed ) ) != rserr_ok ) | ^~~~~~~~~~ | | | int * -
ref_gl/r_main.c:1513:57: warning: pointer targets in passing argument 2 of ‘GLimp_SetMode’ differ in signedness [-Wpointer-sign] 1513 | if ( ( err = GLimp_SetMode( &vid.width, &vid.height, gl_state.prev_mode, windowmode_windowed ) ) != rserr_ok ) | ^~~~~~~~~~~ | | | int * -
ref_gl/r_main.c:1680:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1680 | if ( !szrslt ) | ^~ -
ref_gl/r_main.c:1845:26: warning: variable ‘ref’ set but not used [-Wunused-but-set-variable=] 1845 | cvar_t *ref; | ^~~ -
ref_gl/r_main.c:963:13: warning: ‘R_DrawTerrainTri’ defined but not used [-Wunused-function] 963 | static void R_DrawTerrainTri (const vec_t *verts[3], const vec3_t normal, qboolean does_intersect) | ^~~~~~~~~~~~~~~~ -
ref_gl/r_decals.c:1172:25: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation] 1172 | strncpy (model_path, Com_ParseExt(&bl, false), sizeof(model_path)); | ^ -
ref_gl/r_mesh.c:512:17: warning: ‘R_Mesh_CullBBox’ defined but not used [-Wunused-function] 512 | static qboolean R_Mesh_CullBBox (vec3_t bbox[8]) | ^~~~~~~~~~~~~~~ -
ref_gl/r_model.c:331:34: warning: argument 1 of type ‘vec_t[3]’ {aka ‘float[3]’} with mismatched bound [-Warray-parameter=] 331 | mleaf_t *Mod_PointInLeaf (vec3_t p, model_t *model) | ~~~~~~~^ -
ref_gl/r_model.c:1019:18: warning: variable ‘v’ set but not used [-Wunused-but-set-variable=] 1019 | float *v; | ^ -
ref_gl/r_model.c:1150:29: warning: unused variable ‘nstyles’ [-Wunused-variable] 1150 | int nstyles, size = 0; | ^~~~~~~ -
ref_gl/r_model.c:2066:25: warning: variable ‘i’ set but not used [-Wunused-but-set-variable=] 2066 | int i; | ^ -
ref_gl/r_particle.c:364:9: warning: ‘PART_DrawParticles’ reading 3072 bytes from a region of size 1024 [-Wstringop-overread] 364 | PART_DrawParticles( r_newrefdef.num_particles, r_newrefdef.particles, d_8to24table); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ref_gl/r_particle.c:865:9: warning: ‘Mod_AddVegetation’ accessing 256 bytes in a region of size 64 [-Wstringop-overflow=] 865 | Mod_AddVegetation (origin, normal, tex, color, size, name, type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ref_gl/r_ragdoll.c:206:13: warning: ‘RGD_addBallJoint’ defined but not used [-Wunused-function] 206 | static void RGD_addBallJoint (const model_t *mod, int RagDollID, matrix3x4_t *bindmat, int jointID, int object1, int object2, vec3_t anchor) | ^~~~~~~~~~~~~~~~ -
ref_gl/r_model.c:1117:41: warning: ‘size’ may be used uninitialized [-Wmaybe-uninitialized] 1117 | if (offset < 1 || offset+size > MAX_OVERRIDE_LIGHTING*4) | ~~~~~~^~~~~ -
ref_gl/r_shadowmaps.c:1082:18: warning: ‘VectorLength’ accessing 12 bytes in a region of size 8 [-Wstringop-overflow=] 1082 | if (abs (VectorLength (xyDist)) > abs (lightVec[2]) * 1.5) | ^~~~~~~~~~~~~~~~~~~~~ -
ref_gl/r_shadowmaps.c:1083:40: warning: ‘VectorLength’ accessing 12 bytes in a region of size 8 [-Wstringop-overflow=] 1083 | adjLightPos[2] += abs (VectorLength (xyDist)) - abs (lightVec[2]) * 1.5; | ^~~~~~~~~~~~~~~~~~~~~ -
ref_gl/r_script.c:459:9: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 459 | strncpy (stage->attrname, *token, sizeof(stage->attrname)); \ | ^~~~~~~ -
ref_gl/r_script.c:606:17: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 606 | strncpy (anim->name, *token, sizeof(anim->name)); | ^ -
ref_gl/r_script.c:573:17: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 573 | strncpy (stage->name, *token, sizeof(stage->name)); | ^ -
ref_gl/r_terrain.c:161:74: warning: passing argument 1 of ‘R_RegisterModel’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 161 | ent->model = R_RegisterModel (data.decorations[i].path); | ~~~~~~~~~~~~~~~~~~~^~~~~ -
ref_gl/r_terrain.c:195:33: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 195 | gfxpath = data.decorations[i].path; | ^ -
ref_gl/r_terrain.c:109:13: warning: variable ‘len’ set but not used [-Wunused-but-set-variable=] 109 | int len; | ^~~ -
ref_gl/r_script.c:170:9: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 170 | strncpy (rs->name, name, sizeof(rs->name)); | ^ -
client/menu.c:1244:44: warning: ‘%i’ directive writing between 1 and 11 bytes into a region of size 5 [-Wformat-overflow=] 1244 | sprintf(backgroundpic, "m_main_mont%i", (montagepic==1)?5:montagepic-1); | ^~ -
ref_gl/r_text.c:559:33: warning: variable ‘previous’ set but not used [-Wunused-but-set-variable=] 559 | char previous = ' '; | ^~~~~~~~ -
ref_gl/r_ttf.c:472:38: warning: variable ‘y2’ set but not used [-Wunused-but-set-variable=] 472 | float x1 , x2 , y1 , y2; | ^~ -
ref_gl/r_ttf.c:472:28: warning: variable ‘x2’ set but not used [-Wunused-but-set-variable=] 472 | float x1 , x2 , y1 , y2; | ^~ -
ref_gl/r_ttf.c:472:23: warning: variable ‘x1’ set but not used [-Wunused-but-set-variable=] 472 | float x1 , x2 , y1 , y2; | ^~ -
ref_gl/r_ttf.c:805:25: warning: variable ‘txTotal’ set but not used [-Wunused-but-set-variable=] 805 | int txTotal = 0; | ^~~~~~~ -
ref_gl/r_warp.c:445:20: warning: the address of ‘r_skyname’ will always evaluate as ‘true’ [-Waddress] 445 | if (!force && r_skyname && r_skyname[0]) { | ^~ -
ref_gl/r_warp.c:447:17: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation] 447 | strncpy (skyname, r_skyname, sizeof(skyname) - 1); | ^ -
client/snd_openal.c:2290:13: warning: type of ‘map_music’ does not match original declaration [-Wlto-type-mismatch] 2290 | extern char map_music[260]; // declared and set in r_model.c | ^ -
server/sv_main.c:198:33: warning: ‘__builtin___strncat_chk’ specified bound depends on the length of the source argument [-Wstringop-overflow=] 198 | strncat( status, player, strlen(player) ); | ^ -
server/sv_main.c:228:49: warning: ‘__builtin___strncat_chk’ specified bound depends on the length of the source argument [-Wstringop-overflow=] 228 | strncat( status, player, strlen(player) ); | ^ -
game/g_main.c:806:24: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 806 | buffer[length] = 0; | ^ -
game/g_main.c:444:21: warning: ‘__builtin_strchr’ argument missing terminating nul [-Wstringop-overread] 444 | if (strchr(allowedChars, copy[i]) == NULL) | ^ -
client/cl_irc.c:1753:34: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 1753 | IRC_User.nick[j] = c; | ^ -
game/g_main.c:444:21: warning: ‘strchr’ argument missing terminating nul [-Wstringop-overread] 444 | if (strchr(allowedChars, copy[i]) == NULL) | ^ -
client/menu.c:5575:24: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 5575 | buffer[length] = 0; | ^