Also removes the usage of `@warning` which has been removed in 3.x

[Refs #973]
Merge pull request #975 from alindeman/remove-warning-usage

Also removes the usage of `@warning` which has been removed in 3.x