From c0f3f9781191897a78e4dcc429d902a22769ef77 Mon Sep 17 00:00:00 2001 From: Pavel Penev Date: Fri, 6 Oct 2023 15:31:47 +0300 Subject: [PATCH] Suppressed unused function parameter warning --- OpenRA.Mods.Common/UtilityCommands/ExtractEmmyLuaAPI.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/UtilityCommands/ExtractEmmyLuaAPI.cs b/OpenRA.Mods.Common/UtilityCommands/ExtractEmmyLuaAPI.cs index 47cd01827e..f438942474 100644 --- a/OpenRA.Mods.Common/UtilityCommands/ExtractEmmyLuaAPI.cs +++ b/OpenRA.Mods.Common/UtilityCommands/ExtractEmmyLuaAPI.cs @@ -69,8 +69,10 @@ namespace OpenRA.Mods.Common.UtilityCommands static void WriteDiagnosticsDisabling() { Console.WriteLine("--- This file only lists function \"signatures\", causing Lua Diagnostics errors: \"Annotations specify that a return value is required here.\""); - Console.WriteLine("--- Disable that specific error for the entire file."); + Console.WriteLine("--- and Lua Diagnostics warnings \"Unused local\" for the functions' parameters."); + Console.WriteLine("--- Disable those specific errors for the entire file."); Console.WriteLine("---@diagnostic disable: missing-return"); + Console.WriteLine("---@diagnostic disable: unused-local"); } static void WriteManual()