Squelch warnings.

Fixes ticket:3880 and ticket:3882.