src/g_game.cpp: In function ‘void Cmd_slot(FCommandLine&, APlayerPawn*, int)’: src/g_game.cpp:353:60: warning: cast from type ‘const AInventory*’ to type ‘AInventory*’ casts away qualifiers [-Wcast-qual] players[consoleplayer].mo->UseInventory( (AInventory *)SendItemUse ); ^ src/m_options.cpp: In function ‘int browsermenu_PingCompareFunc(const void*, const void*)’: src/m_options.cpp:2709:36: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if (( M_ShouldShowServer( *(int *)arg1 ) == false ) && ( M_ShouldShowServer( *(int *)arg2 ) == false )) ^ src/m_options.cpp:2709:87: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if (( M_ShouldShowServer( *(int *)arg1 ) == false ) && ( M_ShouldShowServer( *(int *)arg2 ) == false )) ^ src/m_options.cpp:2712:35: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if ( M_ShouldShowServer( *(int *)arg1 ) == false ) ^ src/m_options.cpp:2715:35: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if ( M_ShouldShowServer( *(int *)arg2 ) == false ) ^ src/m_options.cpp:2718:36: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( BROWSER_GetPing( *(int *)arg1 ) - BROWSER_GetPing( *(int *)arg2 )); ^ src/m_options.cpp:2718:70: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( BROWSER_GetPing( *(int *)arg1 ) - BROWSER_GetPing( *(int *)arg2 )); ^ src/m_options.cpp: In function ‘int browsermenu_ServerNameCompareFunc(const void*, const void*)’: src/m_options.cpp:2725:36: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if (( M_ShouldShowServer( *(int *)arg1 ) == false ) && ( M_ShouldShowServer( *(int *)arg2 ) == false )) ^ src/m_options.cpp:2725:87: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if (( M_ShouldShowServer( *(int *)arg1 ) == false ) && ( M_ShouldShowServer( *(int *)arg2 ) == false )) ^ src/m_options.cpp:2728:35: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if ( M_ShouldShowServer( *(int *)arg1 ) == false ) ^ src/m_options.cpp:2731:35: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if ( M_ShouldShowServer( *(int *)arg2 ) == false ) ^ src/m_options.cpp:2734:49: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( stricmp( BROWSER_GetHostName( *(int *)arg1 ), BROWSER_GetHostName( *(int *)arg2 ))); ^ src/m_options.cpp:2734:86: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( stricmp( BROWSER_GetHostName( *(int *)arg1 ), BROWSER_GetHostName( *(int *)arg2 ))); ^ src/m_options.cpp: In function ‘int browsermenu_MapNameCompareFunc(const void*, const void*)’: src/m_options.cpp:2741:36: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if (( M_ShouldShowServer( *(int *)arg1 ) == false ) && ( M_ShouldShowServer( *(int *)arg2 ) == false )) ^ src/m_options.cpp:2741:87: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if (( M_ShouldShowServer( *(int *)arg1 ) == false ) && ( M_ShouldShowServer( *(int *)arg2 ) == false )) ^ src/m_options.cpp:2744:35: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if ( M_ShouldShowServer( *(int *)arg1 ) == false ) ^ src/m_options.cpp:2747:35: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if ( M_ShouldShowServer( *(int *)arg2 ) == false ) ^ src/m_options.cpp:2750:48: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( stricmp( BROWSER_GetMapname( *(int *)arg1 ), BROWSER_GetMapname( *(int *)arg2 ))); ^ src/m_options.cpp:2750:84: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( stricmp( BROWSER_GetMapname( *(int *)arg1 ), BROWSER_GetMapname( *(int *)arg2 ))); ^ src/m_options.cpp: In function ‘int browsermenu_PlayersCompareFunc(const void*, const void*)’: src/m_options.cpp:2757:36: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if (( M_ShouldShowServer( *(int *)arg1 ) == false ) && ( M_ShouldShowServer( *(int *)arg2 ) == false )) ^ src/m_options.cpp:2757:87: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if (( M_ShouldShowServer( *(int *)arg1 ) == false ) && ( M_ShouldShowServer( *(int *)arg2 ) == false )) ^ src/m_options.cpp:2760:35: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if ( M_ShouldShowServer( *(int *)arg1 ) == false ) ^ src/m_options.cpp:2763:35: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] if ( M_ShouldShowServer( *(int *)arg2 ) == false ) ^ src/m_options.cpp:2766:42: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( BROWSER_GetNumPlayers( *(int *)arg2 ) - BROWSER_GetNumPlayers( *(int *)arg1 )); ^ src/m_options.cpp:2766:82: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( BROWSER_GetNumPlayers( *(int *)arg2 ) - BROWSER_GetNumPlayers( *(int *)arg1 )); ^ src/m_options.cpp: In function ‘void M_StartSkirmishGame()’: src/m_options.cpp:3466:62: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] BOTSPAWN_AddToTable( szBuffer, (char *)TEAM_GetName( 3 )); ^ src/m_options.cpp:3471:62: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] BOTSPAWN_AddToTable( szBuffer, (char *)TEAM_GetName( 2 ) ); ^ src/m_options.cpp:3476:62: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] BOTSPAWN_AddToTable( szBuffer, (char *)TEAM_GetName( 1 ) ); ^ src/m_options.cpp:3480:61: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] BOTSPAWN_AddToTable( szBuffer, (char *)TEAM_GetName( 0 ) ); ^ src/network/srp.cpp: In function ‘void srp_create_salted_verification_key(SRP_HashAlgorithm, SRP_NGType, const char*, const unsigned char*, int, const unsigned char**, int*, const unsigned char**, int*, const char*, const char*)’: src/network/srp.cpp:499:37: warning: cast from type ‘const unsigned char*’ to type ‘unsigned char*’ casts away qualifiers [-Wcast-qual] BN_bn2bin(s, (unsigned char *) *bytes_s); ^ src/network/srp.cpp:500:37: warning: cast from type ‘const unsigned char*’ to type ‘unsigned char*’ casts away qualifiers [-Wcast-qual] BN_bn2bin(v, (unsigned char *) *bytes_v); ^ src/network/srp.cpp: In function ‘SRPVerifier* srp_verifier_new(SRP_HashAlgorithm, SRP_NGType, const char*, const unsigned char*, int, const unsigned char*, int, const unsigned char*, int, const unsigned char**, int*, const char*, const char*, int)’: src/network/srp.cpp:561:25: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] memcpy( (char*)ver->username, username, ulen ); ^ src/network/srp.cpp:611:30: warning: cast from type ‘const char*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] free( (void*) ver->username ); ^ src/network/srp.cpp:618:41: warning: cast from type ‘const unsigned char*’ to type ‘unsigned char*’ casts away qualifiers [-Wcast-qual] BN_bn2bin( B, (unsigned char *) *bytes_B ); ^ src/network/srp.cpp: In function ‘void srp_verifier_delete(SRPVerifier*)’: src/network/srp.cpp:644:27: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] free( (char *) ver->username ); ^ src/network/srp.cpp:645:36: warning: cast from type ‘const unsigned char*’ to type ‘unsigned char*’ casts away qualifiers [-Wcast-qual] free( (unsigned char *) ver->bytes_B ); ^ src/network/srp.cpp: In function ‘SRPUser* srp_user_new(SRP_HashAlgorithm, SRP_NGType, const char*, const unsigned char*, int, const char*, const char*, int)’: src/network/srp.cpp:715:25: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] memcpy((char *)usr->username, username, ulen); ^ src/network/srp.cpp:716:25: warning: cast from type ‘const unsigned char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] memcpy((char *)usr->password, bytes_password, len_password); ^ src/network/srp.cpp:732:28: warning: cast from type ‘const char*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] free((void*)usr->username); ^ src/network/srp.cpp:735:30: warning: cast from type ‘const unsigned char*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] memset((void*)usr->password, 0, usr->password_len); ^ src/network/srp.cpp:736:28: warning: cast from type ‘const unsigned char*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] free((void*)usr->password); ^ src/network/srp.cpp: In function ‘void srp_user_delete(SRPUser*)’: src/network/srp.cpp:753:26: warning: cast from type ‘const unsigned char*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] memset((void*)usr->password, 0, usr->password_len); ^ src/network/srp.cpp:754:25: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] free((char *)usr->username); ^ src/network/srp.cpp:755:25: warning: cast from type ‘const unsigned char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] free((char *)usr->password); ^ src/network/srp.cpp:757:29: warning: cast from type ‘const unsigned char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] free( (char *)usr->bytes_A ); ^ src/network/srp.cpp: In function ‘void srp_user_start_authentication(SRPUser*, const char**, const unsigned char**, int*)’: src/network/srp.cpp:806:43: warning: cast from type ‘const unsigned char*’ to type ‘unsigned char*’ casts away qualifiers [-Wcast-qual] BN_bn2bin( usr->A, (unsigned char *) *bytes_A ); ^ src/network/srp.cpp: In function ‘void init_random()’: src/network/srp.cpp:439:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(buff, sizeof(buff), 1, fp); ^ src/p_acs.cpp: In static member function ‘static int FBehavior::SortScripts(const void*, const void*)’: src/p_acs.cpp:2514:33: warning: cast from type ‘const void*’ to type ‘ScriptPtr*’ casts away qualifiers [-Wcast-qual] ScriptPtr *ptr1 = (ScriptPtr *)a; ^ src/p_acs.cpp:2515:33: warning: cast from type ‘const void*’ to type ‘ScriptPtr*’ casts away qualifiers [-Wcast-qual] ScriptPtr *ptr2 = (ScriptPtr *)b; src/p_acs.cpp:7569:42: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVERCOMMANDS_SetMapMusic( (char *)lookup ); ^ src/p_acs.cpp:7600:179: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVERCOMMANDS_SoundPoint( activationline->frontsector->soundorg[0], activationline->frontsector->soundorg[1], activationline->frontsector->soundorg[2], CHAN_AUTO, (char *)lookup, (float)(STACK(1)) / 127.f, ATTN_NORM ); ^ src/p_acs.cpp:7612:48: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVERCOMMANDS_Sound( CHAN_AUTO, (char *)lookup, (float)( STACK( 1 ) / 127.f ), ATTN_NORM ); ^ src/p_acs.cpp:7628:47: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVERCOMMANDS_Sound( CHAN_AUTO, (char *)lookup, (float)( STACK( 1 ) / 127.f ), ATTN_NONE ); ^ src/p_acs.cpp:7647:47: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVERCOMMANDS_Sound( CHAN_AUTO, (char *)lookup, (float)( STACK( 1 ) / 127.f ), ATTN_NONE, activator->player - players, SVCF_ONLYTHISCLIENT ); ^ src/p_acs.cpp:7843:59: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVERCOMMANDS_SoundActor( spot, CHAN_AUTO, (char *)lookup, (float)STACK( 1 ) / 127.f, ATTN_NORM ); ^ src/p_acs.cpp:8130:82: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVERCOMMANDS_SetMapMusic( (char *)FBehavior::StaticLookupString( STACK( 3 ))); ^ src/p_acs.cpp:8131:74: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVER_SetMapMusic( (char *)FBehavior::StaticLookupString( STACK( 3 ))); ^ src/p_acs.cpp:8143:87: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVERCOMMANDS_SetMapMusic( (char *)FBehavior::StaticLookupString( uallong(pc[0]) )); ^ src/p_acs.cpp:8144:79: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVER_SetMapMusic( (char *)FBehavior::StaticLookupString( uallong(pc[0]) )); ^ src/p_acs.cpp:8157:83: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVERCOMMANDS_SetMapMusic( (char *)FBehavior::StaticLookupString( STACK( 3 )), activator->player - players, SVCF_ONLYTHISCLIENT ); ^ src/p_acs.cpp:8173:79: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVERCOMMANDS_SetMapMusic( (char *)FBehavior::StaticLookupString( pc[0] ), activator->player - players, SVCF_ONLYTHISCLIENT ); ^ src/p_acs.cpp:8755:59: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] SERVERCOMMANDS_SetCameraToTexture( camera, (char *)picname, STACK( 1 )); ^ src/scoreboard.cpp: In function ‘int scoreboard_FragCompareFunc(const void*, const void*)’: src/scoreboard.cpp:2129:27: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( players[*(int *)arg2].fragcount - players[*(int *)arg1].fragcount ); ^ src/scoreboard.cpp:2129:61: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( players[*(int *)arg2].fragcount - players[*(int *)arg1].fragcount ); ^ src/scoreboard.cpp: In function ‘int scoreboard_PointsCompareFunc(const void*, const void*)’: src/scoreboard.cpp:2136:27: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( players[*(int *)arg2].lPointCount - players[*(int *)arg1].lPointCount ); ^ src/scoreboard.cpp:2136:63: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( players[*(int *)arg2].lPointCount - players[*(int *)arg1].lPointCount ); ^ src/scoreboard.cpp: In function ‘int scoreboard_KillsCompareFunc(const void*, const void*)’: src/scoreboard.cpp:2143:27: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( players[*(int *)arg2].killcount - players[*(int *)arg1].killcount ); ^ src/scoreboard.cpp:2143:61: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( players[*(int *)arg2].killcount - players[*(int *)arg1].killcount ); ^ src/scoreboard.cpp: In function ‘int scoreboard_WinsCompareFunc(const void*, const void*)’: src/scoreboard.cpp:2150:27: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( players[*(int *)arg2].ulWins - players[*(int *)arg1].ulWins ); ^ src/scoreboard.cpp:2150:58: warning: cast from type ‘const void*’ to type ‘int*’ casts away qualifiers [-Wcast-qual] return ( players[*(int *)arg2].ulWins - players[*(int *)arg1].ulWins ); ^ src/g_shared/pwo.cpp: In function ‘int PWO_CompareWeight(const void*, const void*)’: src/g_shared/pwo.cpp:99:32: warning: cast from type ‘const void*’ to type ‘PWODef*’ casts away qualifiers [-Wcast-qual] const PWODef* def1 = (PWODef*)elem1; ^ src/g_shared/pwo.cpp:100:32: warning: cast from type ‘const void*’ to type ‘PWODef*’ casts away qualifiers [-Wcast-qual] const PWODef* def2 = (PWODef*)elem2; ^ src/g_shared/pwo.cpp: In function ‘int PWO_CompareWeight2(const void*, const void*)’: src/g_shared/pwo.cpp:113:34: warning: cast from type ‘const void*’ to type ‘PWODef**’ casts away qualifiers [-Wcast-qual] const PWODef* def1 = *(PWODef**)elem1; ^ src/g_shared/pwo.cpp:114:34: warning: cast from type ‘const void*’ to type ‘PWODef**’ casts away qualifiers [-Wcast-qual] const PWODef* def2 = *(PWODef**)elem2; ^ upnpnat/xmlParser.cpp: In function ‘char* _tcsstr(const char*, const char*)’: upnpnat/xmlParser.cpp:23:75: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] char *_tcsstr(const char *c1, const char *c2) { return (char*)strstr(c1,c2); } ^ upnpnat/xmlParser.cpp: In function ‘char* _tcschr(const char*, int)’: upnpnat/xmlParser.cpp:24:67: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] char *_tcschr(const char *c1, int c2) { return (char*)strchr(c1,c2); } ^ upnpnat/xmlParser.cpp: In function ‘char* fromXMLString(const char*, int)’: upnpnat/xmlParser.cpp:201:20: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual] return (LPTSTR)s; ^ upnpnat/xmlParser.cpp: In static member function ‘static void* XMLNode::enumContent(XMLNode::XMLNodeData*, int, XMLElementType*)’: upnpnat/xmlParser.cpp:1345:58: warning: cast from type ‘const char*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] case eNodeText: return (void*)(pEntry->pText[i]); ^ upnpnat/xmlParser.cpp: In static member function ‘static void XMLNode::destroyCurrentBuffer(XMLNode::XMLNodeData*)’: upnpnat/xmlParser.cpp:1675:57: warning: cast from type ‘const char*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] for(i=0; inText; i++) free((void*)d->pText[i]); ^ upnpnat/xmlParser.cpp:1677:61: warning: cast from type ‘const char*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] for(i=0; inClear; i++) free((void*)d->pClear[i].lpszValue); ^ upnpnat/xmlParser.cpp:1681:42: warning: cast from type ‘const char*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] free((void*)d->pAttribute[i].lpszName); ^ upnpnat/xmlParser.cpp:1682:74: warning: cast from type ‘const char*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] if (d->pAttribute[i].lpszValue) free((void*)d->pAttribute[i].lpszValue); ^ upnpnat/xmlParser.cpp:1686:24: warning: cast from type ‘const char*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] free((void*)d->lpszName); ^