aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YP.cs
diff options
context:
space:
mode:
authorDr Scofield2008-07-16 09:42:14 +0000
committerDr Scofield2008-07-16 09:42:14 +0000
commit1e39bfb03681302a97bbaf5e3f10034ddcb488e9 (patch)
treeb9130bae964a32b1a807bb7f94f55a27dc455bae /OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YP.cs
parentMantis#1746. Thank you kindly, nlin for pointing out that (diff)
downloadopensim-SC-1e39bfb03681302a97bbaf5e3f10034ddcb488e9.zip
opensim-SC-1e39bfb03681302a97bbaf5e3f10034ddcb488e9.tar.gz
opensim-SC-1e39bfb03681302a97bbaf5e3f10034ddcb488e9.tar.bz2
opensim-SC-1e39bfb03681302a97bbaf5e3f10034ddcb488e9.tar.xz
squashing warnings critters
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YP.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YP.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YP.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YP.cs
index 3d19d3e..17f2f1c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YP.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YP.cs
@@ -673,8 +673,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
673 object[] args = new object[(int)Arity]; 673 object[] args = new object[(int)Arity];
674 for (int i = 0; i < args.Length; ++i) 674 for (int i = 0; i < args.Length; ++i)
675 args[i] = new Variable(); 675 args[i] = new Variable();
676 #pragma warning disable 0219
676 foreach (bool l1 in YP.unify(Term, Functor.make((Atom)FunctorName, args))) 677 foreach (bool l1 in YP.unify(Term, Functor.make((Atom)FunctorName, args)))
677 yield return false; 678 yield return false;
679 #pragma warning restore 0219
678 } 680 }
679 } 681 }
680 else 682 else
@@ -2399,11 +2401,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
2399 if (_Head == null || _Body == null) 2401 if (_Head == null || _Body == null)
2400 yield break; 2402 yield break;
2401 2403
2404 #pragma warning disable 0168
2402 foreach (bool l1 in YP.unify(Head, _Head)) 2405 foreach (bool l1 in YP.unify(Head, _Head))
2403 { 2406 {
2404 foreach (bool l2 in YP.unify(Body, _Body)) 2407 foreach (bool l2 in YP.unify(Body, _Body))
2405 yield return false; 2408 yield return false;
2406 } 2409 }
2410 #pragma warning disable 0168
2407 } 2411 }
2408 } 2412 }
2409 } 2413 }