From 2cce1ce23c5f96246b686196e5c2330e245bfa07 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 27 Dec 2010 13:36:54 +1300 Subject: [PATCH] fix warnings, and bogosity in projectfiles --- OpenRA.Game/Server/Server.cs | 4 ++-- OpenRA.Renderer.Null/OpenRA.Renderer.Null.csproj | 3 +-- OpenRA.Utility/OpenRA.Utility.csproj | 3 +-- RALint/RALint.cs | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/OpenRA.Game/Server/Server.cs b/OpenRA.Game/Server/Server.cs index 6a7232de72..ce8e9f6799 100644 --- a/OpenRA.Game/Server/Server.cs +++ b/OpenRA.Game/Server/Server.cs @@ -165,7 +165,7 @@ namespace OpenRA.Server foreach (var t in ServerTraits.WithInterface()) t.ClientJoined(this, newConn); } - catch (Exception e) { DropClient(newConn); } + catch (Exception) { DropClient(newConn); } } public void UpdateInFlightFrames(Connection conn) @@ -193,7 +193,7 @@ namespace OpenRA.Server ms.Write( data ); c.socket.Send( ms.ToArray() ); } - catch (Exception e) { DropClient(c); } + catch (Exception) { DropClient(c); } } public void DispatchOrders(Connection conn, int frame, byte[] data) diff --git a/OpenRA.Renderer.Null/OpenRA.Renderer.Null.csproj b/OpenRA.Renderer.Null/OpenRA.Renderer.Null.csproj index 7861732310..96c153b044 100644 --- a/OpenRA.Renderer.Null/OpenRA.Renderer.Null.csproj +++ b/OpenRA.Renderer.Null/OpenRA.Renderer.Null.csproj @@ -60,7 +60,6 @@ OpenRA.Game - - \ No newline at end of file + diff --git a/OpenRA.Utility/OpenRA.Utility.csproj b/OpenRA.Utility/OpenRA.Utility.csproj index 723bc9d1fb..f546373bc0 100644 --- a/OpenRA.Utility/OpenRA.Utility.csproj +++ b/OpenRA.Utility/OpenRA.Utility.csproj @@ -61,7 +61,6 @@ OpenRA.FileFormats - - \ No newline at end of file + diff --git a/RALint/RALint.cs b/RALint/RALint.cs index c57421e7bb..ec723eb260 100644 --- a/RALint/RALint.cs +++ b/RALint/RALint.cs @@ -27,7 +27,7 @@ namespace RALint ++errors; } - static Dictionary ValidPrereqs; + static Dictionary ValidPrereqs = new Dictionary(); static int Main(string[] args) {