Created
November 8, 2015 21:36
-
-
Save unitycoder/491d9fdf6c2111803b40 to your computer and use it in GitHub Desktop.
Disable unused variable warnings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add warning number after the disable (can see the error code from the console output) | |
// examples: | |
#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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment