From 8dea0170d35e93f3c1e96b45309c5374e68916fe Mon Sep 17 00:00:00 2001 From: Vincent Cunningham Date: Sun, 28 Feb 2021 20:32:42 -0500 Subject: [PATCH] Ignore narrowing conversion on g++ --- .../Settings/SettingType/SettingsType-RDBSaveChip.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Project64-core/Settings/SettingType/SettingsType-RDBSaveChip.cpp b/Source/Project64-core/Settings/SettingType/SettingsType-RDBSaveChip.cpp index fb85b0507..dffa740f5 100644 --- a/Source/Project64-core/Settings/SettingType/SettingsType-RDBSaveChip.cpp +++ b/Source/Project64-core/Settings/SettingType/SettingsType-RDBSaveChip.cpp @@ -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*/ )