Ticket #3162 - Fix warnings