Don't use add_llvm_definitions for adding warning flags. It makes it too hard
authorDuncan Sands <baldrick@free.fr>
Mon, 25 Mar 2013 13:25:34 +0000 (13:25 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 25 Mar 2013 13:25:34 +0000 (13:25 +0000)
commit2269c56a3ce38e4440c3ed411e5ddd17cbb394c4
treea1060b46b3e7759807a7da9c2ed269644c781dc2
parentf9a7132df8f8e0dd0f54fd603d358fc5a2285011
Don't use add_llvm_definitions for adding warning flags.  It makes it too hard
to have them appear in the right order.  Instead append all warnings explicitly
to the language flags.  This was already the case for many warnings.  Fixes the
issue of -Wno-maybe-uninitialized not being effective because -Wall was being
placed after it rather than before.

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