This reverts commit 31d67fcd3e. The concensus has been that this causes too many build problems in the general case and what is needed instead is a way to turn on the extra warnings for developers only.
31d67fcd3e