This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


The following commit(s) were added to refs/heads/master by this push:
     new b41bdb2  
Lucene.Net.Tests.Suggest.Suggest.Analyzing.AnalyzingInfixSuggesterTest::IndexDocument():
 Suppressed build warning CS0168 about unused variable
b41bdb2 is described below

commit b41bdb29708b137bf978278635e64fcd57bbf2e0
Author: Shad Storhaug <[email protected]>
AuthorDate: Sat Feb 6 11:02:59 2021 +0700

    
Lucene.Net.Tests.Suggest.Suggest.Analyzing.AnalyzingInfixSuggesterTest::IndexDocument():
 Suppressed build warning CS0168 about unused variable
---
 .../Suggest/Analyzing/AnalyzingInfixSuggesterTest.cs                    | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/AnalyzingInfixSuggesterTest.cs 
b/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/AnalyzingInfixSuggesterTest.cs
index 6e3da5a..2231119 100644
--- 
a/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/AnalyzingInfixSuggesterTest.cs
+++ 
b/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/AnalyzingInfixSuggesterTest.cs
@@ -1038,7 +1038,9 @@ namespace Lucene.Net.Search.Suggest.Analyzing
             {
                 suggester.Add(new BytesRef(key), null, 10, null);
             }
+#pragma warning disable CS0168 // Variable is declared but never used
             catch (IOException e)
+#pragma warning restore CS0168 // Variable is declared but never used
             {
                 fail("Could not build suggest dictionary correctly");
             }

Reply via email to