* Removed a bunch of compiler warnings.

0.6.0-stable
Adam Frisby 2008-03-03 09:54:39 +00:00
parent 794deeeb85
commit 415fc22e5e
11 changed files with 8 additions and 11 deletions

View File

@ -67,7 +67,7 @@ namespace OpenSim.Grid.ScriptServer
// Load DotNetEngine
Engine = ScriptEngines.LoadEngine("DotNetEngine");
IConfigSource config = null;
Engine.InitializeEngine(null, null, false, Engine.GetScriptManager());

View File

@ -359,7 +359,7 @@ namespace OpenSim.Region.ClientStack
throw (ex);
// We are looking for alternate ports!
m_log.Info("[SERVER]: UDP socket on " + listenIP.ToString() + " " + listenPort.ToString() + " is not available, trying next.");
//m_log.Info("[SERVER]: UDP socket on " + listenIP.ToString() + " " + listenPort.ToString() + " is not available, trying next.");
}
System.Threading.Thread.Sleep(100); // Wait before we retry socket
}

View File

@ -1255,7 +1255,6 @@ namespace OpenSim.Region.Communications.OGS1
m_log.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString());
return false;
}
return false;
}
/// <summary>

View File

@ -77,7 +77,6 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes
int x, y;
double[,] tweak = new double[map.Width, map.Height];
double n, l;
double area = strength;
double step = strength / 4.0;

View File

@ -112,7 +112,7 @@ namespace OpenSim.Region.Environment.Scenes
/// <param name="RemoteClient">Client to send to</param>
public virtual void SendLayerData(IClientAPI RemoteClient)
{
bool usingTerrainModule = false;
bool usingTerrainModule = true;
if (usingTerrainModule)
{

View File

@ -3494,7 +3494,6 @@ namespace OpenSim.Region.ScriptEngine.Common
int number = 0;
int digit;
int baddigit = 0;
m_host.AddScriptLPS(1);

View File

@ -616,7 +616,7 @@ namespace OpenSim.Region.ScriptEngine.Common
{
list j = this;
j.NumericSort();
double ret;
if (Math.Ceiling(this.Length * i) == this.Length * i)
{
return (double)((double)j.Data[(int)(this.Length * i - 1)] + (double)j.Data[(int)(this.Length * i)]) / 2;

View File

@ -245,7 +245,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
{
threadClass.Stop();
}
catch (Exception ex)
catch (Exception)
{
//m_ScriptEngine.Log.Error("[" + m_ScriptEngine.ScriptEngineName + ":EventQueueManager]: If you see this, could you please report it to Tedd:");
//m_ScriptEngine.Log.Error("[" + m_ScriptEngine.ScriptEngineName + ":EventQueueManager]: Script thread execution timeout kill ended in exception: " + ex.ToString());

View File

@ -169,7 +169,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
DoProcessQueue();
}
}
catch (ThreadAbortException tae)
catch (ThreadAbortException)
{
if (lastScriptEngine != null)
lastScriptEngine.Log.Info("[" + ScriptEngineName + "]: ThreadAbortException while executing function.");

View File

@ -116,7 +116,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
MaintenanceThreadThread.Abort();
}
}
catch (Exception ex)
catch (Exception)
{
//m_ScriptEngine.Log.Error("[" + m_ScriptEngine.ScriptEngineName + "]: Exception stopping maintenence thread: " + ex.ToString());
}

View File

@ -42,7 +42,7 @@ namespace OpenSim.Tests.Common
{
d();
}
catch(ArgumentException e)
catch(ArgumentException)
{
return true;
}