From 41d9d2da4df33f27d36f3fd5fcc039f130b13f2f Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 28 Jun 2019 14:34:18 -0500 Subject: [PATCH 1/2] fix a warning, and fix the name of a variable nearby --- BizHawk.Client.Common/lua/EmuLuaLibrary.SQL.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.Common/lua/EmuLuaLibrary.SQL.cs b/BizHawk.Client.Common/lua/EmuLuaLibrary.SQL.cs index ac03a3c9d4..00bcfb92c1 100644 --- a/BizHawk.Client.Common/lua/EmuLuaLibrary.SQL.cs +++ b/BizHawk.Client.Common/lua/EmuLuaLibrary.SQL.cs @@ -81,14 +81,14 @@ namespace BizHawk.Client.Common return "Command ran successfully"; } - catch (NullReferenceException nullEX) + catch (NullReferenceException) { return "Database not open."; } - catch (SQLiteException sqlEX) + catch (SQLiteException sqlEx) { m_dbConnection.Close(); - return sqlEX.Message; + return sqlEx.Message; } } From 46a23e2b19250bf4f2af704b6dea12e6fd3f4766 Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 28 Jun 2019 14:38:17 -0500 Subject: [PATCH 2/2] fix a few more warnings --- BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs b/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs index 11adfdccb6..0355886e44 100644 --- a/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs +++ b/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs @@ -944,11 +944,11 @@ namespace BizHawk.Client.EmuHawk //TODO add error text to dialog? // Re-show dialog if the address isn't found } - catch (FormatException e) + catch (FormatException) { // Re-show dialog if given invalid text (shouldn't happen) } - catch (OverflowException e) + catch (OverflowException) { //TODO add error text to dialog? // Re-show dialog if the address isn't valid