issue #2770: fix warnings