Skip to content

Instantly share code, notes, and snippets.

@RoeiRubach
Last active March 6, 2020 10:41
Show Gist options
  • Save RoeiRubach/9d5b8aa4df0c0843b52782cd9a7a07d2 to your computer and use it in GitHub Desktop.
Save RoeiRubach/9d5b8aa4df0c0843b52782cd9a7a07d2 to your computer and use it in GitHub Desktop.
[Pragma warning disable] Disable warnings via pragma at the top of your script file. #WarningsDisable
// vim: syntax=csharp
#pragma warning disable 0168 // variable declared but not used.
#pragma warning disable 0219 // variable assigned but not used.
#pragma warning disable 0414 // private field assigned but not used.
/*To ignore warnings in all files create two text files called gmcs.rsp (for editor scripts) and smcs.rsp (for game scripts) into your YOUR_PROJECT_NAME/Assets directory with contents (for example):
-nowarn:0414
0414 is warning number*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment