fix warnings, and bogosity in projectfiles

This commit is contained in:
Chris Forbes
2010-12-27 13:36:54 +13:00
parent 3d47584cd8
commit 2cce1ce23c
4 changed files with 5 additions and 7 deletions

View File

@@ -165,7 +165,7 @@ namespace OpenRA.Server
foreach (var t in ServerTraits.WithInterface<IClientJoined>()) foreach (var t in ServerTraits.WithInterface<IClientJoined>())
t.ClientJoined(this, newConn); t.ClientJoined(this, newConn);
} }
catch (Exception e) { DropClient(newConn); } catch (Exception) { DropClient(newConn); }
} }
public void UpdateInFlightFrames(Connection conn) public void UpdateInFlightFrames(Connection conn)
@@ -193,7 +193,7 @@ namespace OpenRA.Server
ms.Write( data ); ms.Write( data );
c.socket.Send( ms.ToArray() ); c.socket.Send( ms.ToArray() );
} }
catch (Exception e) { DropClient(c); } catch (Exception) { DropClient(c); }
} }
public void DispatchOrders(Connection conn, int frame, byte[] data) public void DispatchOrders(Connection conn, int frame, byte[] data)

View File

@@ -60,7 +60,6 @@
<Name>OpenRA.Game</Name> <Name>OpenRA.Game</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
@@ -69,4 +68,4 @@
<Target Name="AfterBuild"> <Target Name="AfterBuild">
</Target> </Target>
--> -->
</Project> </Project>

View File

@@ -61,7 +61,6 @@
<Name>OpenRA.FileFormats</Name> <Name>OpenRA.FileFormats</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
@@ -70,4 +69,4 @@
<Target Name="AfterBuild"> <Target Name="AfterBuild">
</Target> </Target>
--> -->
</Project> </Project>

View File

@@ -27,7 +27,7 @@ namespace RALint
++errors; ++errors;
} }
static Dictionary<string, int> ValidPrereqs; static Dictionary<string, int> ValidPrereqs = new Dictionary<string, int>();
static int Main(string[] args) static int Main(string[] args)
{ {