Follow googletest logic for suppressing warnings in unittests/UnitTestMain.