Revert "remove warnings"

This reverts commit 5b3a2eb66892259829777d7eb4834cdb3e6918d6.