From 6f3cd152723d97ca4874d9644af279ab53adbddd Mon Sep 17 00:00:00 2001 From: MrGadget <9826063+MrGadget1024@users.noreply.github.com> Date: Sun, 19 May 2024 07:56:51 -0400 Subject: [PATCH] fix(WeaverAssembler): Silence Obsolete Warning 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 1f4618a2ffe..2cbeb1cc3ef 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;