Cysharp / MemoryPack

Zero encoding extreme performance binary serializer for C# and Unity.
MIT License
3.01k stars 182 forks source link

Add pragma warning disable CS0618 to MemoryPackGenerator.Emitter.cs #276

Open crui3er opened 3 months ago

crui3er commented 3 months ago

C# compiler generates annoying warnings for generated classes like Warning CS0618 : "DecoratedClass.ObsoleteProperty" is Obsolete when decorated class has properties marked with ObsoleteAttribute. It can be fixed by adding an extra disable warning directive to the list https://github.com/Cysharp/MemoryPack/blob/main/src/MemoryPack.Generator/MemoryPackGenerator.Emitter.cs#L80

neuecc commented 3 months ago

You're right. I think we should add it.