Fixes #1030 Warning class issues.

#1030