Revert "Some useful warnings added"

This reverts commit f452009079b744ef896b5be4651e91a34c1a38c8.