Is there a compiler known that disables those warnings by default? gcc enables it as part of -Wall, so it should already be enabled.