Missing const, fix warnings: