Warning level must be in the range 0-4
The /warn compiler option can only take one of five possible values (0, 1, 2, 3, or 4). Any other value passed to /warn will result in CS1900. For example, the following compiler option will result in CS1900:
/W:5