Don't display deprecations warning to the user

fix #1026