Snippets for alienarena 7.71.6 from FreeBSD 150amd64
Sourced from https://pkg-status.freebsd.org/beefy23/data/latest-per-pkg/alienarena/7.71.6_2,1/150amd64-default.log.
-
qcommon/md5.c:273:27: warning: 'memset' call operates on objects of type 'MD5_CTX' while the size is based on a different type 'MD5_CTX *' [-Wsizeof-pointer-memaccess] 273 | memset(ctx, 0, sizeof(ctx)); // In case it's sensitive | ~~~ ^~~ -
./ref_gl/glext.h:34:9: warning: 'GL_GLEXT_VERSION' macro redefined [-Wmacro-redefined] 34 | #define GL_GLEXT_VERSION 56 | ^ -
game/acesrc/acebot_ai.c:579:26: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 579 | if(target->classname == "hbomb") | ^ ~~~~~~~ -
game/acesrc/acebot_ai.c:581:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 581 | else if(target->classname == "alien computer") | ^ ~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:583:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 583 | else if(target->classname == "alien powersrc") | ^ ~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:585:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 585 | else if(target->classname == "alien ammodepot") | ^ ~~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:587:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 587 | else if(target->classname == "alien backupgen") | ^ ~~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:592:26: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 592 | if(target->classname == "abomb") | ^ ~~~~~~~ -
game/acesrc/acebot_ai.c:594:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 594 | else if(target->classname == "human computer") | ^ ~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:596:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 596 | else if(target->classname == "human powersrc") | ^ ~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:598:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 598 | else if(target->classname == "human ammodepot") | ^ ~~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:600:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 600 | else if(target->classname == "human backupgen") | ^ ~~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:815:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 815 | && (self->enemy->classname == "human computer" || self->enemy->classname == "human powersrc" | ^ ~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:815:77: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 815 | && (self->enemy->classname == "human computer" || self->enemy->classname == "human powersrc" | ^ ~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:816:30: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 816 | || self->enemy->classname == "human ammodepot")) | ^ ~~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:825:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 825 | && (self->enemy->classname == "alien computer" || self->enemy->classname == "alien powersrc" | ^ ~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:825:77: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 825 | && (self->enemy->classname == "alien computer" || self->enemy->classname == "alien powersrc" | ^ ~~~~~~~~~~~~~~~~ -
game/acesrc/acebot_ai.c:826:30: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 826 | || self->enemy->classname == "alien ammodepot")) | ^ ~~~~~~~~~~~~~~~~~ -
game/g_combat.c:275:14: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 275 | height = abs(targ->mins[2]) + targ_maxs2; | ^ -
game/g_combat.c:292:9: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 292 | && (abs(new_point[1])) < HEAD_HEIGHT*.8 | ^ -
game/g_combat.c:293:21: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 293 | && (abs(new_point[0])) < HEAD_HEIGHT*.8 ) { | ^ -
game/g_misc.c:1297:20: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1297 | if(ent->classname == "alien computer") | ^ ~~~~~~~~~~~~~~~~ -
game/g_misc.c:1315:21: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1315 | if(self->classname == "alien computer") | ^ ~~~~~~~~~~~~~~~~ -
game/g_misc.c:1330:21: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1330 | if(self->classname == "alien computer") | ^ ~~~~~~~~~~~~~~~~ -
game/g_misc.c:1421:20: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1421 | if(ent->classname == "alien powersrc") | ^ ~~~~~~~~~~~~~~~~ -
game/g_misc.c:1438:21: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1438 | if(self->classname == "alien powersrc") | ^ ~~~~~~~~~~~~~~~~ -
game/g_misc.c:1453:21: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1453 | if(self->classname == "alien powersrc") | ^ ~~~~~~~~~~~~~~~~ -
game/g_misc.c:1544:20: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1544 | if(ent->classname == "alien ammodepot") | ^ ~~~~~~~~~~~~~~~~~ -
game/g_misc.c:1560:21: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1560 | if(self->classname == "alien ammodepot") | ^ ~~~~~~~~~~~~~~~~~ -
game/g_misc.c:1575:21: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1575 | if(self->classname == "alien ammodepot") | ^ ~~~~~~~~~~~~~~~~~ -
game/g_misc.c:1666:20: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1666 | if(ent->classname == "alien backupgen") | ^ ~~~~~~~~~~~~~~~~~ -
game/g_misc.c:1695:21: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1695 | if(self->classname == "alien backupgen") | ^ ~~~~~~~~~~~~~~~~~ -
game/g_misc.c:1708:21: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1708 | if(self->classname == "alien backupgen") | ^ ~~~~~~~~~~~~~~~~~ -
game/g_misc.c:1823:22: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1823 | if(ent->classname == "human powersrc") | ^ ~~~~~~~~~~~~~~~~ -
game/g_misc.c:1830:27: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1830 | else if(ent->classname == "human ammodepot") | ^ ~~~~~~~~~~~~~~~~~ -
game/g_misc.c:1837:27: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1837 | else if(ent->classname == "human computer") | ^ ~~~~~~~~~~~~~~~~ -
game/g_misc.c:1844:27: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1844 | else if(ent->classname == "human backupgen") | ^ ~~~~~~~~~~~~~~~~~ -
game/g_misc.c:1851:27: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1851 | else if(ent->classname == "abomb") | ^ ~~~~~~~ -
game/g_misc.c:1862:22: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1862 | if(ent->classname == "alien powersrc") | ^ ~~~~~~~~~~~~~~~~ -
game/g_misc.c:1869:27: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1869 | else if(ent->classname == "alien ammodepot") | ^ ~~~~~~~~~~~~~~~~~ -
game/g_misc.c:1876:27: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1876 | else if(ent->classname == "alien computer") | ^ ~~~~~~~~~~~~~~~~ -
game/g_misc.c:1883:27: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1883 | else if(ent->classname == "alien backupgen") | ^ ~~~~~~~~~~~~~~~~~ -
game/g_misc.c:1890:27: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1890 | else if(ent->classname == "hbomb") | ^ ~~~~~~~ -
game/g_unlagged.c:169:4: warning: call to undeclared function 'Cvar_SetValue'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 169 | Cvar_SetValue("g_antilagprojectiles", 0); | ^ -
game/g_trigger.c:547:54: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 547 | if((other->s.effects & EF_GIB) || (other->classname == "g_gib")) | ^ ~~~~~~~ -
game/g_weapon.c:2139:22: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 2139 | if(self->classname == "abomb") | ^ ~~~~~~~ -
game/g_weapon.c:2228:21: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 2228 | if(self->classname == "abomb") | ^ ~~~~~~~ -
game/m_move.c:448:28: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 448 | if ( ((rand()&3) & 1) || abs(deltay)>abs(deltax)) | ^ -
game/m_move.c:448:40: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 448 | if ( ((rand()&3) & 1) || abs(deltay)>abs(deltax)) | ^ -
game/p_view.c:1351:16: warning: floating-point comparison is always false; constant cannot be represented exactly in type 'float' [-Wliteral-range] 1351 | if(FRAMETIME == TENFPS) | ~~~~~~~~~ ^ ~~~~~~ -
unix/minizip/ioapi.c:212:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | void fill_fopen_filefunc (pzlib_filefunc_def) | ^ -
unix/minizip/miniunz.c:70:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | void change_file_date(filename,dosdate,tmu_date) | ^ -
unix/minizip/miniunz.c:119:11: warning: call to undeclared function 'mkdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 119 | ret = mkdir (dirname,0775); | ^ -
unix/minizip/miniunz.c:111:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | int mymkdir(dirname) | ^ -
unix/minizip/miniunz.c:125:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | int makedir (newdir) | ^ -
unix/minizip/miniunz.c:221:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | int do_list(uf) | ^ -
unix/minizip/miniunz.c:406:25: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 406 | makedir(write_filename); | ^~~~~~~~~~~~~~ -
unix/minizip/miniunz.c:299:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 299 | int do_extract_currentfile(uf,popt_extract_without_path,popt_overwrite,password) | ^ -
unix/minizip/miniunz.c:463:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 463 | int do_extract(uf,opt_extract_without_path,opt_overwrite,password) | ^ -
unix/minizip/miniunz.c:499:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | int do_extract_onefile(uf,filename,opt_extract_without_path,opt_overwrite,password) | ^ -
unix/minizip/miniunz.c:522:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 522 | int main(argc,argv) | ^ -
unix/minizip/minizip.c:85:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | uLong filetime(f, tmzip, dt) | ^ -
unix/minizip/minizip.c:140:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | int check_exist_file(filename) | ^ -
unix/minizip/minizip.c:398:26: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 398 | filetime(filenameinzip,&zi.tmz_date,&zi.dosDate); | ^~~~~~~~~~~~~ -
unix/minizip/minizip.c:233:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | int main(argc,argv) | ^ -
unix/minizip/mztools.c:30:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | extern int ZEXPORT unzRepair(file, fileOut, fileOutTmp, nRecovered, bytesRecovered) | ^ -
unix/minizip/unzip.c:1699:46: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1699 | if ((pfile_in_zip_read_info->read_buffer == NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ -
unix/minizip/zip.c:1117:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1117 | if ((level==2)) | ~~~~~^~~ -
unix/minizip/zip.c:1119:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1119 | if ((level==1)) | ~~~~~^~~ -
unix/minizip/zip.c:1248:28: warning: incompatible pointer types assigning to 'const unsigned long *' from 'const z_crc_t *' (aka 'const unsigned int *') [-Wincompatible-pointer-types] 1248 | zi->ci.pcrc_32_tab = get_crc_table(); | ^ ~~~~~~~~~~~~~~~ -
client/cl_ents.c:192:6: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 192 | || abs(state->origin[0] - ent->current.origin[0]) > 512 | ^ -
client/cl_ents.c:193:6: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 193 | || abs(state->origin[1] - ent->current.origin[1]) > 512 | ^ -
client/cl_ents.c:194:6: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 194 | || abs(state->origin[2] - ent->current.origin[2]) > 512 | ^ -
client/cl_ents.c:1600:7: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value] 1600 | if ( fabs(ops->pmove.origin[0] - ps->pmove.origin[0]) > 256*8 | ^ -
client/cl_http.c:249:3: warning: call to undeclared function '_unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 249 | _unlink(dnld_file); // delete partial or empty file | ^ -
client/cl_http.c:155:6: warning: call to 'Wcurl_easy_setopt_err_long' declared with 'warning' attribute: curl_easy_setopt expects a long argument [-Wattribute-warning] 155 | if (curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 5) != CURLE_OK) return false; | ^ -
client/cl_parse.c:906:8: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] 906 | if (!ci->weaponmodel[i] == 0) { | ^ ~~ -
client/cl_stats.c:108:2: warning: call to 'Wcurl_easy_setopt_err_long' declared with 'warning' attribute: curl_easy_setopt expects a long argument [-Wattribute-warning] 108 | curl_easy_setopt(easyhandle, CURLOPT_CONNECTTIMEOUT, 5); | ^ -
client/cl_updates.c:267:6: warning: call to 'Wcurl_easy_setopt_err_long' declared with 'warning' attribute: curl_easy_setopt expects a long argument [-Wattribute-warning] 267 | if (curl_easy_setopt(easyhandle, CURLOPT_CONNECTTIMEOUT, 5) != CURLE_OK) return; | ^ -
client/menu.c:1723:15: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1723 | if (cvarname == "vid_fullscreen" && | ^ ~~~~~~~~~~~~~~~~ -
client/menu.c:1903:16: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1903 | if ((cvarname == "vid_width" || cvarname == "vid_height") && | ^ ~~~~~~~~~~~ -
client/menu.c:1903:43: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1903 | if ((cvarname == "vid_width" || cvarname == "vid_height") && | ^ ~~~~~~~~~~~~ -
client/menu.c:1987:29: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1987 | if (optionname->cvarname == "vid_fullscreen" && | ^ ~~~~~~~~~~~~~~~~ -
client/menu.c:2032:24: warning: comparison of distinct pointer types ('const char **' and 'char **') [-Wcompare-distinct-pointer-types] 2032 | if (item->itemnames == font_names) | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ -
client/menu.c:2070:31: warning: assigning to 'void *' from 'const sliderlimit_t *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 2070 | item->generic.localptrs[0] = limit; | ^ ~~~~~ -
client/menu.c:2082:31: warning: assigning to 'void *' from 'const fieldsize_t *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 2082 | item->generic.localptrs[0] = fieldsize; | ^ ~~~~~~~~~ -
client/menu.c:4216:199: warning: passing 'char *[13]' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] 4216 | Menu_MakeTable (&s_servers[serverindex].serverinfo_table, rows, 2, sizes, s_servers[serverindex].serverinfo_rows, s_servers[serverindex].serverinfo_rows, s_servers[serverindex].serverinfo_columns, contents); | ^~~~~~~~ -
client/menu.c:4315:7: warning: passing 'char *[256]' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] 4315 | local_player_info_ptrs | ^~~~~~~~~~~~~~~~~~~~~~ -
client/menu.c:5708:64: warning: data argument not used by format string [-Wformat-extra-args] 5708 | Cbuf_AddText (sprintf("setmaster %s %s\n", DEFAULT_MASTER_1, DEFAULT_MASTER_2)); | ~~~~~~~~~~~~~~~~ ^ -
client/menu.c:5708:17: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion] 5708 | Cbuf_AddText (sprintf("setmaster %s %s\n", DEFAULT_MASTER_1, DEFAULT_MASTER_2)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
client/qmenu.c:176:23: warning: comparison of distinct pointer types ('struct _tag_menuitem *' and 'menufield_s *' (aka 'menumultival_s *')) [-Wcompare-distinct-pointer-types] 176 | if ( cursor.menuitem == f ) | ~~~~~~~~~~~~~~~ ^ ~ -
client/menu.c:7061:21: warning: incompatible pointer types passing 'menuslider_s *' (aka 'menumultival_s *') to parameter of type 'menuitem_s *' (aka 'struct _tag_menuitem *') [-Wincompatible-pointer-types] 7061 | Menu_ActivateItem (s); | ^ -
./client/qmenu.h:345:37: client/qmenu.c:188:4: warning: incompatible pointer types assigning to 'menufield_s *' (aka 'menumultival_s *') from 'struct _tag_menuitem *' [-Wincompatible-pointer-types] 188 | f = cursor.menuitem; | ^ ~~~~~~~~~~~~~~~ -
client/qmenu.c:635:11: warning: enumeration value 'MTYPE_VERT_SCROLLBAR' not handled in switch [-Wswitch] 635 | switch ( self->type ) | ^~~~~~~~~~ -
client/qmenu.c:952:12: warning: enumeration value 'MTYPE_VERT_SCROLLBAR' not handled in switch [-Wswitch] 952 | switch ( item->generic.type ) | ^~~~~~~~~~~~~~~~~~ -
client/qmenu.c:1004:8: warning: incompatible pointer types assigning to 'menuitem_s *' (aka 'struct _tag_menuitem *') from 'menucommon_s *' [-Wincompatible-pointer-types] 1004 | item = &menu->vertical_scrollbar; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ -
client/qmenu.c:1467:16: warning: incompatible pointer types initializing 'menucommon_s *' with an expression of type 'struct _tag_menuitem *' [-Wincompatible-pointer-types] 1467 | menucommon_s *item = cursor.menuitem; | ^ ~~~~~~~~~~~~~~~ -
client/qmenu.c:1471:12: warning: 5 enumeration values not handled in switch: 'MTYPE_VERT_SCROLLBAR', 'MTYPE_ACTION', 'MTYPE_FIELD'... [-Wswitch] 1471 | switch ( item->type ) | ^~~~~~~~~~ -
client/qmenu.c:1515:21: warning: incompatible pointer types passing 'menuslider_s *' (aka 'menumultival_s *') to parameter of type 'menuitem_s *' (aka 'struct _tag_menuitem *') [-Wincompatible-pointer-types] 1515 | Menu_ActivateItem (s); | ^ -
client/qmenu.c:1574:21: warning: incompatible pointer types passing 'menulist_s *' (aka 'menumultival_s *') to parameter of type 'menuitem_s *' (aka 'struct _tag_menuitem *') [-Wincompatible-pointer-types] 1574 | Menu_ActivateItem (s); | ^ -
ref_gl/glext.h:34:9: warning: 'GL_GLEXT_VERSION' macro redefined [-Wmacro-redefined] 34 | #define GL_GLEXT_VERSION 56 | ^ -
ref_gl/r_decals.c:558:16: warning: backslash and newline separated by space [-Wbackslash-newline-escape] 558 | // /\ | ^ -
ref_gl/r_decals.c:559:17: warning: backslash and newline separated by space [-Wbackslash-newline-escape] 559 | // .========/ \ | ^ -
ref_gl/r_decals.c:560:18: warning: backslash and newline separated by space [-Wbackslash-newline-escape] 560 | // | /|___\ | ^ -
client/menu.c:1160:2: warning: call to 'Wcurl_easy_setopt_err_long' declared with 'warning' attribute: curl_easy_setopt expects a long argument [-Wattribute-warning] 1160 | curl_easy_setopt(easyhandle, CURLOPT_CONNECTTIMEOUT, 5); | ^ -
ref_gl/r_draw.c:114:9: warning: 'DEG2RAD' macro redefined [-Wmacro-redefined] 114 | #define DEG2RAD (0.0174532925f) | ^ -
ref_gl/r_light.c:360:25: warning: passing 'const vec_t *' (aka 'const float *') to parameter of type 'vec_t *' (aka 'float *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 360 | CM_TerrainLightPoint (p, end, color); | ^ -
ref_gl/r_light.c:363:76: warning: passing 'const vec_t *' (aka 'const float *') to parameter of type 'vec_t *' (aka 'float *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 363 | if (r_worldmodel->lightdata && RecursiveLightPoint (r_worldmodel->nodes, p, end, &uses_lightstyle) != -1) | ^ -
ref_gl/r_main.c:1457:30: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 1457 | if ( ( err = GLimp_SetMode( &vid.width, &vid.height, gl_mode->integer, windowmode ) ) == rserr_ok ) | ^~~~~~~~~~ -
ref_gl/r_main.c:1457:42: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 1457 | if ( ( err = GLimp_SetMode( &vid.width, &vid.height, gl_mode->integer, windowmode ) ) == rserr_ok ) | ^~~~~~~~~~~ -
ref_gl/r_main.c:1468:32: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 1468 | if ( ( err = GLimp_SetMode( &vid.width, &vid.height, gl_mode->integer, windowmode_windowed ) ) == rserr_ok ) | ^~~~~~~~~~ -
ref_gl/r_main.c:1468:44: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 1468 | if ( ( err = GLimp_SetMode( &vid.width, &vid.height, gl_mode->integer, windowmode_windowed ) ) == rserr_ok ) | ^~~~~~~~~~~ -
ref_gl/r_main.c:1479:31: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 1479 | if ( ( err = GLimp_SetMode( &vid.width, &vid.height, gl_state.prev_mode, windowmode_windowed ) ) != rserr_ok ) | ^~~~~~~~~~ -
ref_gl/r_main.c:1479:43: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 1479 | if ( ( err = GLimp_SetMode( &vid.width, &vid.height, gl_state.prev_mode, windowmode_windowed ) ) != rserr_ok ) | ^~~~~~~~~~~ -
ref_gl/r_model.c:1085:35: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 1085 | printf ("%d / %d\n", l->filelen, sizeof(*in)); | ~~ ^~~~~~~~~~~ | %lu -
ref_gl/r_ragdoll.c:845:28: warning: use of infinity via a macro is undefined behavior due to the currently enabled floating-point options [-Wnan-infinity-disabled] 845 | contact[i].surface.mu = dInfinity; // Friction | ^ -
ref_gl/r_shadowmaps.c:1082:6: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 1082 | if (abs (VectorLength (xyDist)) > abs (lightVec[2]) * 1.5) | ^ -
ref_gl/r_shadowmaps.c:1082:36: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 1082 | if (abs (VectorLength (xyDist)) > abs (lightVec[2]) * 1.5) | ^ -
ref_gl/r_shadowmaps.c:1083:21: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 1083 | adjLightPos[2] += abs (VectorLength (xyDist)) - abs (lightVec[2]) * 1.5; | ^ -
ref_gl/r_shadowmaps.c:1083:51: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 1083 | adjLightPos[2] += abs (VectorLength (xyDist)) - abs (lightVec[2]) * 1.5; | ^ -
ref_gl/r_surf.c:2040:43: warning: implicit conversion from 'int' to 'vec_t' (aka 'float') changes value from -99999999 to -1.0E+8 [-Wimplicit-const-int-float-conversion] 2040 | vec3_t surfmaxs = {-99999999, -99999999, -99999999}; | ~ ^~~~~~~~~ -
ref_gl/r_surf.c:2040:32: warning: implicit conversion from 'int' to 'vec_t' (aka 'float') changes value from -99999999 to -1.0E+8 [-Wimplicit-const-int-float-conversion] 2040 | vec3_t surfmaxs = {-99999999, -99999999, -99999999}; | ~ ^~~~~~~~~ -
ref_gl/r_surf.c:2040:21: warning: implicit conversion from 'int' to 'vec_t' (aka 'float') changes value from -99999999 to -1.0E+8 [-Wimplicit-const-int-float-conversion] 2040 | vec3_t surfmaxs = {-99999999, -99999999, -99999999}; | ~^~~~~~~~~ -
ref_gl/r_surf.c:2041:41: warning: implicit conversion from 'int' to 'vec_t' (aka 'float') changes value from 99999999 to 1.0E+8 [-Wimplicit-const-int-float-conversion] 2041 | vec3_t surfmins = {99999999, 99999999, 99999999}; | ~ ^~~~~~~~ -
ref_gl/r_surf.c:2041:31: warning: implicit conversion from 'int' to 'vec_t' (aka 'float') changes value from 99999999 to 1.0E+8 [-Wimplicit-const-int-float-conversion] 2041 | vec3_t surfmins = {99999999, 99999999, 99999999}; | ~ ^~~~~~~~ -
ref_gl/r_surf.c:2041:21: warning: implicit conversion from 'int' to 'vec_t' (aka 'float') changes value from 99999999 to 1.0E+8 [-Wimplicit-const-int-float-conversion] 2041 | vec3_t surfmins = {99999999, 99999999, 99999999}; | ~^~~~~~~~ -
ref_gl/r_terrain.c:161:34: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 161 | ent->model = R_RegisterModel (data.decorations[i].path); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
ref_gl/r_terrain.c:195:12: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 195 | gfxpath = data.decorations[i].path; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~