cmake: Refactored validation of compiler warning flags.
Merge pull request #83 from yocchi/cmake-refactor-warning

cmake: Refactored validation of compiler warning flags.