ThirdPartyController.JS - warning

Please fix:
if (Input.GetKey (KeyCode.LeftShift) | Input.GetKey (KeyCode.RightShift))

to
if (Input.GetKey (KeyCode.LeftShift) || Input.GetKey (KeyCode.RightShift))

because of

/Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(54,54): Error UCW0003: WARNING: Bitwise operation ‘|’ on boolean values won’t shortcut. Did you mean ‘||’? (UCW0003) (Assembly-UnityScript-firstpass)

I believe this is actually supposed to be a bitwise operation. So | is correct, not ||

The warning is just that - a warning.

However, there is no way to supress the warning.

Just leave it as is - and ignore it.

(I thought this was a mistake to but came across this answer somehwere)

No, it’s really supposed to be ||. It’s just saying “if left shift or right shift”, no bitwise operations needed or desired. The default assets shouldn’t be generating any warnings. However it’s best to use the bug reporter for this.

–Eric

Why isn’t there a way to suppress this. I’m using bitwise in my code and the warnings are super annoying.