Strip calls to warning() in __DEV__

Fixes #1120.
Merge pull request #1122 from spicyj/gh-1120

Strip calls to warning() in __DEV__