aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2018-01-15 16:23:19 +0000
committerUbitUmarov2018-01-15 16:23:19 +0000
commitc92ba1cc04c36d46b3569c06d8339cf897af65cc (patch)
tree88fadaf244e29d229bc166c1b0ac031843b15a50 /OpenSim
parentupdate PrimMesher to a newer version from dahlia (thx dahlia), targeted .net4.6 (diff)
downloadopensim-SC-c92ba1cc04c36d46b3569c06d8339cf897af65cc.zip
opensim-SC-c92ba1cc04c36d46b3569c06d8339cf897af65cc.tar.gz
opensim-SC-c92ba1cc04c36d46b3569c06d8339cf897af65cc.tar.bz2
opensim-SC-c92ba1cc04c36d46b3569c06d8339cf897af65cc.tar.xz
shut up some pesty warnings
Diffstat (limited to '')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs2
-rw-r--r--OpenSim/Framework/Monitoring/JobEngine.cs2
-rw-r--r--OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs3
-rw-r--r--OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs2
-rw-r--r--OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs3
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandObject.cs4
-rw-r--r--OpenSim/Region/CoreModules/World/Wind/WindModule.cs1
-rw-r--r--OpenSim/Region/Framework/Scenes/KeyframeMotion.cs24
-rw-r--r--OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs2
-rw-r--r--OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs4
-rw-r--r--OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs1
-rwxr-xr-xOpenSim/Region/PhysicsModules/BulletS/Tests/Raycast.cs2
-rw-r--r--OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs5
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs1
-rw-r--r--OpenSim/Services/Connectors/Neighbour/NeighbourServicesConnector.cs3
15 files changed, 30 insertions, 29 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index 84d87f1..f29898a 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -1934,7 +1934,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
1934 GetSceneFromRegionParams(requestData, responseData, out scene); 1934 GetSceneFromRegionParams(requestData, responseData, out scene);
1935 health = scene.GetHealth(out flags, out text); 1935 health = scene.GetHealth(out flags, out text);
1936 } 1936 }
1937 catch (Exception e) 1937 catch
1938 { 1938 {
1939 responseData["error"] = null; 1939 responseData["error"] = null;
1940 } 1940 }
diff --git a/OpenSim/Framework/Monitoring/JobEngine.cs b/OpenSim/Framework/Monitoring/JobEngine.cs
index 115871e..4a831e8 100644
--- a/OpenSim/Framework/Monitoring/JobEngine.cs
+++ b/OpenSim/Framework/Monitoring/JobEngine.cs
@@ -238,7 +238,7 @@ namespace OpenSim.Framework.Monitoring
238 break; 238 break;
239 } 239 }
240 } 240 }
241 catch(ObjectDisposedException e) 241 catch(ObjectDisposedException)
242 { 242 {
243 m_log.DebugFormat("[JobEngine] {0} stopping ignoring {1} jobs in queue", 243 m_log.DebugFormat("[JobEngine] {0} stopping ignoring {1} jobs in queue",
244 Name,m_jobQueue.Count); 244 Name,m_jobQueue.Count);
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
index eb8ca0d..8ab5808 100644
--- a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
+++ b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
@@ -130,7 +130,8 @@ namespace OpenSim.Framework.Servers.HttpServer
130 response.OutputStream.Flush(); 130 response.OutputStream.Flush();
131 response.Send(); 131 response.Send();
132 } 132 }
133 catch (Exception e) 133// catch (Exception e)
134 catch
134 { 135 {
135 } 136 }
136 } 137 }
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
index f2fc070..47ac188 100644
--- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
+++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
@@ -809,7 +809,7 @@ namespace OpenSim.Region.CoreModules.Asset
809 809
810 return; 810 return;
811 } 811 }
812 catch (UnauthorizedAccessException e) 812 catch (UnauthorizedAccessException)
813 { 813 {
814 } 814 }
815 finally 815 finally
diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
index d342163..e7f0aec 100644
--- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
+++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
@@ -666,7 +666,8 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
666 ResponseBody = e.Message; 666 ResponseBody = e.Message;
667 } 667 }
668 } 668 }
669 catch (Exception e) 669// catch (Exception e)
670 catch
670 { 671 {
671 // Don't crash on anything else 672 // Don't crash on anything else
672 } 673 }
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
index 4471432..51e6071 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
@@ -1396,9 +1396,9 @@ namespace OpenSim.Region.CoreModules.World.Land
1396 byte[] tempConvertArr = new byte[LandBitmap.GetLength(0) * LandBitmap.GetLength(1) / 8]; 1396 byte[] tempConvertArr = new byte[LandBitmap.GetLength(0) * LandBitmap.GetLength(1) / 8];
1397 1397
1398 int tempByte = 0; 1398 int tempByte = 0;
1399 int i, byteNum = 0; 1399 int byteNum = 0;
1400 int mask = 1; 1400 int mask = 1;
1401 i = 0; 1401
1402 for (int y = 0; y < LandBitmap.GetLength(1); y++) 1402 for (int y = 0; y < LandBitmap.GetLength(1); y++)
1403 { 1403 {
1404 for (int x = 0; x < LandBitmap.GetLength(0); x++) 1404 for (int x = 0; x < LandBitmap.GetLength(0); x++)
diff --git a/OpenSim/Region/CoreModules/World/Wind/WindModule.cs b/OpenSim/Region/CoreModules/World/Wind/WindModule.cs
index a1fff62..ebcb678 100644
--- a/OpenSim/Region/CoreModules/World/Wind/WindModule.cs
+++ b/OpenSim/Region/CoreModules/World/Wind/WindModule.cs
@@ -47,7 +47,6 @@ namespace OpenSim.Region.CoreModules
47 47
48 private uint m_frame = 0; 48 private uint m_frame = 0;
49 private int m_dataVersion = 0; 49 private int m_dataVersion = 0;
50 private int m_regionID = 0;
51 private int m_frameUpdateRate = 150; 50 private int m_frameUpdateRate = 150;
52 //private Random m_rndnums = new Random(Environment.TickCount); 51 //private Random m_rndnums = new Random(Environment.TickCount);
53 private Scene m_scene = null; 52 private Scene m_scene = null;
diff --git a/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs b/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs
index 80ee510..bf20c32 100644
--- a/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs
+++ b/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs
@@ -497,7 +497,7 @@ namespace OpenSim.Region.Framework.Scenes
497 497
498 m_group.RootPart.Velocity = Vector3.Zero; 498 m_group.RootPart.Velocity = Vector3.Zero;
499 m_group.RootPart.AngularVelocity = Vector3.Zero; 499 m_group.RootPart.AngularVelocity = Vector3.Zero;
500 m_skippedUpdates = 1000; 500// m_skippedUpdates = 1000;
501// m_group.SendGroupRootTerseUpdate(); 501// m_group.SendGroupRootTerseUpdate();
502 m_group.RootPart.ScheduleTerseUpdate(); 502 m_group.RootPart.ScheduleTerseUpdate();
503 m_group.Scene.EventManager.TriggerMovingEndEvent(m_group.RootPart.LocalId); 503 m_group.Scene.EventManager.TriggerMovingEndEvent(m_group.RootPart.LocalId);
@@ -521,7 +521,7 @@ namespace OpenSim.Region.Framework.Scenes
521 return; 521 return;
522 if (m_running && !m_waitingCrossing) 522 if (m_running && !m_waitingCrossing)
523 StartTimer(); 523 StartTimer();
524 m_skippedUpdates = 1000; 524// m_skippedUpdates = 1000;
525 } 525 }
526 } 526 }
527 527
@@ -652,10 +652,10 @@ namespace OpenSim.Region.Framework.Scenes
652 m_frames.Clear(); 652 m_frames.Clear();
653 } 653 }
654 654
655 [NonSerialized()] Vector3 m_lastPosUpdate; 655// [NonSerialized()] Vector3 m_lastPosUpdate;
656 [NonSerialized()] Quaternion m_lastRotationUpdate; 656// [NonSerialized()] Quaternion m_lastRotationUpdate;
657 [NonSerialized()] Vector3 m_currentVel; 657 [NonSerialized()] Vector3 m_currentVel;
658 [NonSerialized()] int m_skippedUpdates; 658// [NonSerialized()] int m_skippedUpdates;
659 [NonSerialized()] double m_lasttickMS; 659 [NonSerialized()] double m_lasttickMS;
660 660
661 private void DoOnTimer(double tickDuration) 661 private void DoOnTimer(double tickDuration)
@@ -669,14 +669,14 @@ namespace OpenSim.Region.Framework.Scenes
669 if (m_group == null) 669 if (m_group == null)
670 return; 670 return;
671 671
672 bool update = false; 672// bool update = false;
673 673
674 if (m_selected) 674 if (m_selected)
675 { 675 {
676 if (m_group.RootPart.Velocity != Vector3.Zero) 676 if (m_group.RootPart.Velocity != Vector3.Zero)
677 { 677 {
678 m_group.RootPart.Velocity = Vector3.Zero; 678 m_group.RootPart.Velocity = Vector3.Zero;
679 m_skippedUpdates = 1000; 679// m_skippedUpdates = 1000;
680// m_group.SendGroupRootTerseUpdate(); 680// m_group.SendGroupRootTerseUpdate();
681 m_group.RootPart.ScheduleTerseUpdate(); 681 m_group.RootPart.ScheduleTerseUpdate();
682 } 682 }
@@ -690,7 +690,7 @@ namespace OpenSim.Region.Framework.Scenes
690 // retry to set the position that evtually caused the outbound 690 // retry to set the position that evtually caused the outbound
691 // if still outside region this will call startCrossing below 691 // if still outside region this will call startCrossing below
692 m_isCrossing = false; 692 m_isCrossing = false;
693 m_skippedUpdates = 1000; 693// m_skippedUpdates = 1000;
694 m_group.AbsolutePosition = m_nextPosition; 694 m_group.AbsolutePosition = m_nextPosition;
695 695
696 if (!m_isCrossing) 696 if (!m_isCrossing)
@@ -724,7 +724,7 @@ namespace OpenSim.Region.Framework.Scenes
724 724
725 m_currentFrame.TimeMS += (int)tickDuration; 725 m_currentFrame.TimeMS += (int)tickDuration;
726 m_lasttickMS = nowMS - 50f; 726 m_lasttickMS = nowMS - 50f;
727 update = true; 727// update = true;
728 } 728 }
729 729
730 int elapsed = (int)(nowMS - m_lasttickMS); 730 int elapsed = (int)(nowMS - m_lasttickMS);
@@ -761,7 +761,7 @@ namespace OpenSim.Region.Framework.Scenes
761 else 761 else
762 m_group.RootPart.Velocity = Vector3.Zero; 762 m_group.RootPart.Velocity = Vector3.Zero;
763 } 763 }
764 update = true; 764// update = true;
765 } 765 }
766 else 766 else
767 { 767 {
@@ -858,7 +858,7 @@ namespace OpenSim.Region.Framework.Scenes
858 if (m_group.RootPart.Velocity != Vector3.Zero) 858 if (m_group.RootPart.Velocity != Vector3.Zero)
859 { 859 {
860 m_group.RootPart.Velocity = Vector3.Zero; 860 m_group.RootPart.Velocity = Vector3.Zero;
861 m_skippedUpdates = 1000; 861// m_skippedUpdates = 1000;
862// m_group.SendGroupRootTerseUpdate(); 862// m_group.SendGroupRootTerseUpdate();
863 m_group.RootPart.ScheduleTerseUpdate(); 863 m_group.RootPart.ScheduleTerseUpdate();
864 } 864 }
@@ -871,7 +871,7 @@ namespace OpenSim.Region.Framework.Scenes
871 if (m_group != null) 871 if (m_group != null)
872 { 872 {
873 m_group.RootPart.Velocity = Vector3.Zero; 873 m_group.RootPart.Velocity = Vector3.Zero;
874 m_skippedUpdates = 1000; 874// m_skippedUpdates = 1000;
875// m_group.SendGroupRootTerseUpdate(); 875// m_group.SendGroupRootTerseUpdate();
876 m_group.RootPart.ScheduleTerseUpdate(); 876 m_group.RootPart.ScheduleTerseUpdate();
877 877
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
index a2d512a..66bf536 100644
--- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
+++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
@@ -1401,7 +1401,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
1401 value = reader.ReadElementContentAsString("Media", String.Empty); 1401 value = reader.ReadElementContentAsString("Media", String.Empty);
1402 shp.Media = PrimitiveBaseShape.MediaList.FromXml(value); 1402 shp.Media = PrimitiveBaseShape.MediaList.FromXml(value);
1403 } 1403 }
1404 catch (XmlException e) 1404 catch (XmlException)
1405 { 1405 {
1406 // There are versions of OAR files that contain unquoted XML. 1406 // There are versions of OAR files that contain unquoted XML.
1407 // ie ONE comercial fork that never wanted their oars to be read by our code 1407 // ie ONE comercial fork that never wanted their oars to be read by our code
diff --git a/OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs b/OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs
index 2a1ae45..5ce1515 100644
--- a/OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs
+++ b/OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs
@@ -163,7 +163,7 @@ namespace OpenSim.Region.PhysicsModule.BasicPhysics
163 { 163 {
164// Console.WriteLine("Simulating"); 164// Console.WriteLine("Simulating");
165 165
166 float fps = 0; 166 float fps = 1.0f / timeStep;
167 for (int i = 0; i < _actors.Count; ++i) 167 for (int i = 0; i < _actors.Count; ++i)
168 { 168 {
169 BasicActor actor = _actors[i]; 169 BasicActor actor = _actors[i];
@@ -226,7 +226,7 @@ namespace OpenSim.Region.PhysicsModule.BasicPhysics
226 actor.Velocity = actorVelocity; 226 actor.Velocity = actorVelocity;
227 } 227 }
228 228
229 return 1.0f; 229 return fps;
230 } 230 }
231 231
232 public override void GetResults() 232 public override void GetResults()
diff --git a/OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs b/OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs
index d182c34..2ca7dbc 100644
--- a/OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs
+++ b/OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs
@@ -92,6 +92,7 @@ public sealed class BSCharacter : BSPhysObject
92 Density = BSParam.AvatarDensity; 92 Density = BSParam.AvatarDensity;
93 _isPhysical = true; 93 _isPhysical = true;
94 94
95 _footOffset = footOffset;
95 // Adjustments for zero X and Y made in Size() 96 // Adjustments for zero X and Y made in Size()
96 // This also computes avatar scale, volume, and mass 97 // This also computes avatar scale, volume, and mass
97 SetAvatarSize(size, footOffset, true /* initializing */); 98 SetAvatarSize(size, footOffset, true /* initializing */);
diff --git a/OpenSim/Region/PhysicsModules/BulletS/Tests/Raycast.cs b/OpenSim/Region/PhysicsModules/BulletS/Tests/Raycast.cs
index bfa95c1..a6f587e 100755
--- a/OpenSim/Region/PhysicsModules/BulletS/Tests/Raycast.cs
+++ b/OpenSim/Region/PhysicsModules/BulletS/Tests/Raycast.cs
@@ -51,7 +51,7 @@ namespace OpenSim.Region.PhysicsModule.BulletS.Tests
51 BSScene _physicsScene { get; set; } 51 BSScene _physicsScene { get; set; }
52 BSPrim _targetSphere { get; set; } 52 BSPrim _targetSphere { get; set; }
53 Vector3 _targetSpherePosition { get; set; } 53 Vector3 _targetSpherePosition { get; set; }
54 float _simulationTimeStep = 0.089f; 54// float _simulationTimeStep = 0.089f;
55 55
56 uint _targetLocalID = 123; 56 uint _targetLocalID = 123;
57 57
diff --git a/OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs b/OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs
index 032d4ed..451345f 100644
--- a/OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs
+++ b/OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs
@@ -340,7 +340,7 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing
340 faces = new List<Face>(); 340 faces = new List<Face>();
341 OSD meshOsd = null; 341 OSD meshOsd = null;
342 342
343 if (primShape.SculptData == null || primShape.SculptData.Length <= 0) 343 if (primShape.SculptData.Length <= 0)
344 { 344 {
345// m_log.InfoFormat("[MESH]: asset data for {0} is zero length", primName); 345// m_log.InfoFormat("[MESH]: asset data for {0} is zero length", primName);
346 return false; 346 return false;
@@ -363,7 +363,6 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing
363 catch (Exception e) 363 catch (Exception e)
364 { 364 {
365 m_log.Error("[MESH]: Exception deserializing mesh asset header:" + e.ToString()); 365 m_log.Error("[MESH]: Exception deserializing mesh asset header:" + e.ToString());
366 return false;
367 } 366 }
368 367
369 start = data.Position; 368 start = data.Position;
@@ -1383,7 +1382,7 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing
1383 { 1382 {
1384 File.Delete(filename); 1383 File.Delete(filename);
1385 } 1384 }
1386 catch (IOException e) 1385 catch (IOException)
1387 { 1386 {
1388 m_log.ErrorFormat( 1387 m_log.ErrorFormat(
1389 "[MESH CACHE]: Failed to delete file {0}",filename); 1388 "[MESH CACHE]: Failed to delete file {0}",filename);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index 9d72b1c..a98311e 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -771,7 +771,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
771 /// <returns></returns> 771 /// <returns></returns>
772 public object EventProcessor() 772 public object EventProcessor()
773 { 773 {
774 EventParams data = null;
775 // We check here as the thread stopping this instance from running may itself hold the m_Script lock. 774 // We check here as the thread stopping this instance from running may itself hold the m_Script lock.
776 if (!Running) 775 if (!Running)
777 return 0; 776 return 0;
diff --git a/OpenSim/Services/Connectors/Neighbour/NeighbourServicesConnector.cs b/OpenSim/Services/Connectors/Neighbour/NeighbourServicesConnector.cs
index 5f075ac..9f3b94c 100644
--- a/OpenSim/Services/Connectors/Neighbour/NeighbourServicesConnector.cs
+++ b/OpenSim/Services/Connectors/Neighbour/NeighbourServicesConnector.cs
@@ -151,7 +151,8 @@ namespace OpenSim.Services.Connectors
151 os.Write(buffer, 0, strBuffer.Length); //Send it 151 os.Write(buffer, 0, strBuffer.Length); //Send it
152 //m_log.InfoFormat("[REST COMMS]: Posted HelloNeighbour request to remote sim {0}", uri); 152 //m_log.InfoFormat("[REST COMMS]: Posted HelloNeighbour request to remote sim {0}", uri);
153 } 153 }
154 catch (Exception e) 154// catch (Exception e)
155 catch
155 { 156 {
156// m_log.WarnFormat( 157// m_log.WarnFormat(
157// "[NEIGHBOUR SERVICE CONNCTOR]: Unable to send HelloNeighbour from {0} to {1}. Exception {2}{3}", 158// "[NEIGHBOUR SERVICE CONNCTOR]: Unable to send HelloNeighbour from {0} to {1}. Exception {2}{3}",