From af9994ba57aecd55121dca390d8c5a354d876231 Mon Sep 17 00:00:00 2001 From: MrGadget <9826063+MrGadget1024@users.noreply.github.com> Date: Mon, 20 May 2024 06:29:52 -0400 Subject: [PATCH] fix(WeaverAssembler): Silence Obsolete Warning (#3826) We have #3630 for this...silence warning until Unity tells us what to use instead. --- Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs index 1f4618a2f..2cbeb1cc3 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs @@ -93,11 +93,13 @@ public static void Clear() public static void Build(Action OnWarning, Action OnError) { +#pragma warning disable 618 AssemblyBuilder assemblyBuilder = new AssemblyBuilder(Path.Combine(OutputDirectory, OutputFile), SourceFiles.ToArray()) { // "The type 'MonoBehaviour' is defined in an assembly that is not referenced" referencesOptions = ReferencesOptions.UseEngineModules }; +#pragma warning restore 618 if (AllowUnsafe) { assemblyBuilder.compilerOptions.AllowUnsafeCode = true;