Strip calls to warning() in __DEV__

Fixes #1120.