Sometimes I get annoying pattern matching and indent warnings when compiling F#. Is there a way to disable warnings? I’m pretty OCD over warnings.
Sometimes I get annoying pattern matching and indent warnings when compiling F#. Is there
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In case you forget, you can type
and get the warning
which shows that you can use either the compiler flag
--nowarnon the command-line, or use the hash-directive#nowarnin your code. The warning number for each warning will be part of the build output (the Visual Studio error list does not display the numbers, so if in VS, build and then inspect the build output). Also, if inside VS, you can go to the project properties page, “Build” tab, and use the “warning level” selector and “suppress warnings” field (a semicolon-delimited list of numbers) to control which warnings are diplayed via the VS UI.(BTW, I believe
#nowarnonly turns off the warning in the current file, whereas--nowarnturns it off for the entire project being compiled.)