Ignore narrowing conversion on g++

This commit is contained in:
Vincent Cunningham 2021-02-28 20:32:42 -05:00
parent 56d98cae9b
commit 8dea0170d3
No known key found for this signature in database
GPG Key ID: 2F189694BB5A9932
1 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,8 @@ void CSettingTypeRDBSaveChip::Save (uint32_t /*Index*/, bool /*Value*/ )
void CSettingTypeRDBSaveChip::Save (uint32_t /*Index*/, uint32_t Value )
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnarrowing"
switch (Value)
{
case SaveChip_Auto: m_SettingsIniFile->SaveString(m_SectionIdent->c_str(),m_KeyName.c_str(),"First Save Type"); break;
@ -108,6 +110,7 @@ void CSettingTypeRDBSaveChip::Save (uint32_t /*Index*/, uint32_t Value )
default:
g_Notify->BreakPoint(__FILE__, __LINE__);
}
#pragma GCC diagnostic pop
}
void CSettingTypeRDBSaveChip::Save (uint32_t /*Index*/, const std::string & /*Value*/ )