Turn off uninitialized-use warnings for gcc in cmake build
authorEdwin Vane <edwin.vane@intel.com>
Mon, 4 Feb 2013 02:32:44 +0000 (02:32 +0000)
committerEdwin Vane <edwin.vane@intel.com>
Mon, 4 Feb 2013 02:32:44 +0000 (02:32 +0000)
commit4b5dbaa96a6e51e925ac017468538754aad8e5cc
treee72b9dbd9c07cae7c44f53e06b714ace0313d5a4
parent87b1a453f08fd0d56a074d2d665f779232a6cac0
Turn off uninitialized-use warnings for gcc in cmake build

Added support to the cmake build to turn off uninitialized use warnings
for gcc. This cleans the build up somewhat.

Used logic simpler than found in autoconf by making use of the fact that
although gcc won't complain about unsupported -Wno-* flags it *will*
complain about unsupported -W flags.

Reviewers: gribozavr, doug.gregor, chandlerc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174299 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/config-ix.cmake
cmake/modules/HandleLLVMOptions.cmake