Fix compile warnings

This commit is contained in:
Lloyd Dilley 2022-11-04 00:52:37 -04:00
parent a904ef7304
commit 285f06dbd2
No known key found for this signature in database
GPG key ID: 4BDB8A2B34026B38
36 changed files with 1097 additions and 1064 deletions

View file

@ -2808,7 +2808,7 @@ auto CServerData::HirelingCombatTraining() const -> bool
{
return boolVals.test( BIT_HIRELINGCOMBATTRAINING );
}
auto CServerData::HirelingCombatTraining( bool newVal ) -> void
auto CServerData::HirelingCombatTraining( bool /*newVal*/ ) -> void
{
boolVals.set( BIT_HIRELINGCOMBATTRAINING );
}
@ -4971,6 +4971,7 @@ auto CServerData::ParseIni( const std::string& filename ) -> bool
}
}
}
[[fallthrough]];
case static_cast<int>( search_t::startsection ):
{
if( line[0] == '{' )
@ -4978,6 +4979,7 @@ auto CServerData::ParseIni( const std::string& filename ) -> bool
state = search_t::endsection;
}
}
[[fallthrough]];
case static_cast<int>( search_t::endsection ):
{
if( line[0] != '}' )