resharper-unity icon indicating copy to clipboard operation
resharper-unity copied to clipboard

Disable warning 649 on fields with SerializeFieldAttribute

Open andrumak opened this issue 10 years ago • 3 comments

To skip "field is newer assigned" warning with private fields with SerializeField (assigned via inspector) I had to flood my code with "#pragma warning disable 649" and "#pragma warning restore 649". Will be good to skip this warning somehow if possible

andrumak avatar Jun 10 '16 20:06 andrumak

If this is a warning from the compiler, there is nothing ReSharper can do about it. If it's just a ReSharper warning, in the editor, then this should be fixed by bd67def92fdc0bf9f302e31e5a0efcae1cadaed4, but I haven't yet had the chance to release.

citizenmatt avatar Jun 15 '16 20:06 citizenmatt

This is a compiler warning; you can use smcs.rsp and gmcs.rsp to tell Visual Studio to disable them - I forget the syntax now but give those names a google and you'll find it!

hymerman avatar Sep 15 '16 15:09 hymerman

ReSharper can't do anything about compiler warnings. The plugin will mark fields like this as assigned (as of 1.3), so closing this for now.

citizenmatt avatar Sep 24 '16 17:09 citizenmatt