From 1e39bfb03681302a97bbaf5e3f10034ddcb488e9 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Wed, 16 Jul 2008 09:42:14 +0000 Subject: squashing warnings critters --- .../DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs index bba7d03..5810c0b 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs @@ -249,6 +249,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog object[] arguments = YP.getFunctorArgs(Head); // We always match Head from _allAnswers, and the Body is Atom.a("true"). + #pragma warning disable 0168 foreach (bool l1 in YP.unify(Body, Atom.a("true"))) { // The caller can assert another answer into this same predicate during yield, so we have to @@ -259,6 +260,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog yield return false; } } + #pragma warning restore 0168 } public IEnumerable retract(object Head, object Body) @@ -268,7 +270,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog throw new PrologException("instantiation_error", "Head is an unbound variable"); object[] arguments = YP.getFunctorArgs(Head); - // We always match Head from _allAnswers, and the Body is Atom.a("true"). + // We always match Head from _allAnswers, and the Body is + // Atom.a("true"). + #pragma warning disable 0168 foreach (bool l1 in YP.unify(Body, Atom.a("true"))) { // The caller can assert another answer into this same predicate during yield, so we have to @@ -283,6 +287,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog } } } + #pragma warning restore 0168 } /// -- cgit v1.1