Simplify the checks for supported compiler warning flags

Authored by arichardson on Apr 14 2017, 1:41 PM.