[SOLVED] "#pragma warning disable" generates its own warning

Edit: Solved. I was mistakenly updating the .js files instead of the .cs files

The MSDN says you can put the following in the beginning of a file to disable all warnings:

#pragma warning disable

However, this causes unity to generate the following warning:
Assets/Scripts/AnimationDisabler.cs(1,25): warning CS1692: Invalid number

Is there another way to do this without specifying the specific warning numbers?
Thanks.

No, it does work for C#. The problem was I was including it in JavaScript files, which apparently was causing the problems. I’m not sure exactly what went wrong, but it now seems to work for the C# files.