Fixing warnings.

Refs #1777.