feature #1879: Fix compilation warnings