/home/edward-san/zdoom/zandronum/stable/src/astar.cpp:623:13: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] } while ( abs( lXNode - lXIdx ) > 8 ); ^ /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:623:13: note: use function 'std::abs' instead } while ( abs( lXNode - lXIdx ) > 8 ); ^~~ std::abs /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:623:13: note: please include the header or explicitly provide a declaration for 'std::abs' /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:630:14: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] } while (( abs( lXNode - lXIdx ) > 8 ) || ( abs( lXNode - lXIdx ) < 2 )); ^ /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:630:14: note: use function 'std::abs' instead } while (( abs( lXNode - lXIdx ) > 8 ) || ( abs( lXNode - lXIdx ) < 2 )); ^~~ std::abs /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:630:14: note: please include the header or explicitly provide a declaration for 'std::abs' /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:630:47: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] } while (( abs( lXNode - lXIdx ) > 8 ) || ( abs( lXNode - lXIdx ) < 2 )); ^ /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:630:47: note: use function 'std::abs' instead } while (( abs( lXNode - lXIdx ) > 8 ) || ( abs( lXNode - lXIdx ) < 2 )); ^~~ std::abs /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:630:47: note: please include the header or explicitly provide a declaration for 'std::abs' /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:638:13: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] } while ( abs( lYNode - lYIdx ) > 8 ); ^ /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:638:13: note: use function 'std::abs' instead } while ( abs( lYNode - lYIdx ) > 8 ); ^~~ std::abs /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:638:13: note: please include the header or explicitly provide a declaration for 'std::abs' /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:645:14: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] } while (( abs( lYNode - lYIdx ) > 8 ) || ( abs( lYNode - lYIdx ) < 2 )); ^ /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:645:14: note: use function 'std::abs' instead } while (( abs( lYNode - lYIdx ) > 8 ) || ( abs( lYNode - lYIdx ) < 2 )); ^~~ std::abs /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:645:14: note: please include the header or explicitly provide a declaration for 'std::abs' /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:645:47: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] } while (( abs( lYNode - lYIdx ) > 8 ) || ( abs( lYNode - lYIdx ) < 2 )); ^ /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:645:47: note: use function 'std::abs' instead } while (( abs( lYNode - lYIdx ) > 8 ) || ( abs( lYNode - lYIdx ) < 2 )); ^~~ std::abs /home/edward-san/zdoom/zandronum/stable/src/astar.cpp:645:47: note: please include the header or explicitly provide a declaration for 'std::abs' 6 warnings generated. /home/edward-san/zdoom/zandronum/stable/src/botcommands.cpp:1323:24: warning: absolute value function 'abs' given an argument of type 'LONG' (aka 'long') but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] lAngle = ANGLE_MAX - abs( lAngle ); ^ /home/edward-san/zdoom/zandronum/stable/src/botcommands.cpp:1323:24: note: use function 'std::abs' instead lAngle = ANGLE_MAX - abs( lAngle ); ^~~ std::abs /home/edward-san/zdoom/zandronum/stable/src/botcommands.cpp:1880:46: warning: absolute value function 'abs' given an argument of type 'LONG' (aka 'long') but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] pBot->GetPlayer( )->mo->angle -= ANGLE_1 * abs( lBuffer ); ^ /home/edward-san/zdoom/zandronum/stable/src/botcommands.cpp:1880:46: note: use function 'std::abs' instead pBot->GetPlayer( )->mo->angle -= ANGLE_1 * abs( lBuffer ); ^~~ std::abs /home/edward-san/zdoom/zandronum/stable/src/botcommands.cpp:1965:73: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (( pBot->m_ulPlayerEnemy >= MAXPLAYERS ) || ( pBot->m_ulPlayerEnemy < 0 ) || ( playeringame[pBot->m_ulPlayerEnemy] == false )) ~~~~~~~~~~~~~~~~~~~~~ ^ ~ 3 warnings generated. /home/edward-san/zdoom/zandronum/stable/src/bots.cpp:1255:35: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (( BotInfo.ulChatFrequency < 0 ) || ( BotInfo.ulChatFrequency > 100 )) ~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ /home/edward-san/zdoom/zandronum/stable/src/bots.cpp:1723:34: warning: address of array 'g_BotInfo[this->m_ulBotInfoIdx]->szSkinName' will always evaluate to 'true' [-Wpointer-bool-conversion] if ( g_BotInfo[m_ulBotInfoIdx]->szSkinName ) ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /home/edward-san/zdoom/zandronum/stable/src/bots.cpp:1743:34: warning: address of array 'g_BotInfo[this->m_ulBotInfoIdx]->szClassName' will always evaluate to 'true' [-Wpointer-bool-conversion] if ( g_BotInfo[m_ulBotInfoIdx]->szClassName ) ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 3 warnings generated. /home/edward-san/zdoom/zandronum/stable/src/chat.cpp:842:73: warning: comparison of constant 4392081922311798 with expression of type 'int' is always true [-Wtautological-constant-out-of-range-compare] if ( argv.argc( ) >= 3 && ( atoi( argv[2] ) > 0 ) && ( atoi( argv[2] ) < LONG_MAX / ( TICRATE * MINUTE ))) ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. /home/edward-san/zdoom/zandronum/stable/src/m_options.cpp:5335:8: warning: expression result unused [-Wunused-value] *clip++; ^~~~~~~ 2 warnings generated. /home/edward-san/zdoom/zandronum/stable/src/networkshared.cpp:923:26: warning: address of array 'this->_ipVector[ulIdx].szComment' will always evaluate to 'true' [-Wpointer-bool-conversion] if ( _ipVector[ulIdx].szComment && strlen( _ipVector[ulIdx].szComment )) ~~~~~~~~~~~~~~~~~^~~~~~~~~ ~~ 1 warning generated. /home/edward-san/zdoom/zandronum/stable/src/network/cl_auth.cpp:147:74: warning: format specifies type 'int' but the argument has type 'LONG' (aka 'long') [-Wformat] Printf ( "Error: Received unknown SRP command '%d' from client %d.\n", lCommand, SERVER_GetCurrentClient() ); ~~ ^~~~~~~~ %ld /home/edward-san/zdoom/zandronum/stable/src/network/cl_auth.cpp:147:84: warning: format specifies type 'int' but the argument has type 'LONG' (aka 'long') [-Wformat] Printf ( "Error: Received unknown SRP command '%d' from client %d.\n", lCommand, SERVER_GetCurrentClient() ); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ %ld 2 warnings generated. /home/edward-san/zdoom/zandronum/stable/src/network/sv_auth.cpp:500:74: warning: format specifies type 'int' but the argument has type 'LONG' (aka 'long') [-Wformat] Printf ( "Error: Received unknown SRP command '%d' from client %d.\n", lCommand, SERVER_GetCurrentClient() ); ~~ ^~~~~~~~ %ld /home/edward-san/zdoom/zandronum/stable/src/network/sv_auth.cpp:500:84: warning: format specifies type 'int' but the argument has type 'LONG' (aka 'long') [-Wformat] Printf ( "Error: Received unknown SRP command '%d' from client %d.\n", lCommand, SERVER_GetCurrentClient() ); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ %ld 2 warnings generated. /home/edward-san/zdoom/zandronum/stable/src/p_acs.cpp:3805:43: warning: format specifies type 'int' but the argument has type 'ULONG' (aka 'unsigned long') [-Wformat] work.AppendFormat ( "%d@localhost", ulPlayer ); ~~ ^~~~~~~~ %lu /home/edward-san/zdoom/zandronum/stable/src/sv_main.cpp:2806:35: warning: address of array 'players[ulClient].userinfo.netname' will always evaluate to 'true' [-Wpointer-bool-conversion] if ( players[ulClient].userinfo.netname && ( SERVER_GetClient( ulClient )->State >= CLS_SPAWNED_BUT_NEEDS_AUTHENTICATION ) ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ ~~ /home/edward-san/zdoom/zandronum/stable/src/sv_main.cpp:4991:7: warning: taking the absolute value of unsigned type 'unsigned long' has no effect [-Wabsolute-value] if ( labs (currentPing - p->ulPing) > 3.5 * ticLength ) ^ /home/edward-san/zdoom/zandronum/stable/src/sv_main.cpp:4991:7: note: remove the call to 'labs' since unsigned values cannot be negative if ( labs (currentPing - p->ulPing) > 3.5 * ticLength ) ^~~~~ 2 warnings generated. /home/edward-san/zdoom/zandronum/stable/src/sv_save.cpp:157:15: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (( ulSlot < 0 ) || ( ulSlot >= MAXPLAYERS )) ~~~~~~ ^ ~ 1 warning generated. /home/edward-san/zdoom/zandronum/stable/src/team.cpp:899:17: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if ( ulTeamIdx < 0 || ulTeamIdx >= TEAM_GetNumAvailableTeams( )) ~~~~~~~~~ ^ ~ /home/edward-san/zdoom/zandronum/stable/src/team.cpp:1798:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ( (pActor == NULL) ) ~~~~~~~^~~~~~~ /home/edward-san/zdoom/zandronum/stable/src/team.cpp:1798:15: note: remove extraneous parentheses around the comparison to silence this warning if ( (pActor == NULL) ) ~ ^ ~ /home/edward-san/zdoom/zandronum/stable/src/team.cpp:1798:15: note: use '=' to turn this equality comparison into an assignment if ( (pActor == NULL) ) ^~ = 2 warnings generated. /home/edward-san/zdoom/zandronum/stable/src/za_database.cpp:430:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] newVal.AppendFormat ( "%d", DATABASE_GetEntry ( Namespace, EntryName ).ToLong() + Increment ); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld 1 warning generated. /home/edward-san/zdoom/zandronum/stable/src/g_shared/hudmessages.cpp:312:20: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if ( lBottomDelta < 0 ) ~~~~~~~~~~~~ ^ ~ 1 warning generated.