diff options
author | Brad King <brad.king@kitware.com> | 2020-01-14 13:57:40 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-01-14 13:59:37 (GMT) |
commit | 47dac86c086a7fa99d6dceb2c4db1012b1931cd9 (patch) | |
tree | 9e82ff09409973669205f65092e12f77cd7a3675 | |
parent | f1af6d5baf2ce7d36e877d13153e0a399562d30b (diff) | |
parent | b7b8331d686d87769c7aac60bb41585eb4fb54c2 (diff) | |
download | CMake-47dac86c086a7fa99d6dceb2c4db1012b1931cd9.zip CMake-47dac86c086a7fa99d6dceb2c4db1012b1931cd9.tar.gz CMake-47dac86c086a7fa99d6dceb2c4db1012b1931cd9.tar.bz2 |
Merge topic 'xcode-default-warnings'
b7b8331d68 Xcode: Drop hard-coded default warning flags like -Wmost
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4213
-rw-r--r-- | Help/release/dev/xcode-default-warnings.rst | 5 | ||||
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Help/release/dev/xcode-default-warnings.rst b/Help/release/dev/xcode-default-warnings.rst new file mode 100644 index 0000000..a9a2e49 --- /dev/null +++ b/Help/release/dev/xcode-default-warnings.rst @@ -0,0 +1,5 @@ +xcode-default-warnings +---------------------- + +* The :generator:`Xcode` generator no longer hard-codes ``-Wmost``, + ``-Wno-four-char-constants``, and ``-Wno-unknown-pragmas`` warning flags. diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 607b2b3..f887284 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -2357,9 +2357,6 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmGeneratorTarget* gtgt, buildSettings->AddAttribute("SECTORDER_FLAGS", this->CreateString("")); buildSettings->AddAttribute("USE_HEADERMAP", this->CreateString("NO")); cmXCodeObject* group = this->CreateObject(cmXCodeObject::OBJECT_LIST); - group->AddObject(this->CreateString("-Wmost")); - group->AddObject(this->CreateString("-Wno-four-char-constants")); - group->AddObject(this->CreateString("-Wno-unknown-pragmas")); group->AddObject(this->CreateString("$(inherited)")); buildSettings->AddAttribute("WARNING_CFLAGS", group); |