maintcheck: fix spurious warnings