diff options
author | Brad King <brad.king@kitware.com> | 2019-04-12 11:57:54 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-04-12 11:58:01 (GMT) |
commit | d798d2f7c5cc6b3fc69974f8d9392265228dbe5b (patch) | |
tree | ea069a42692fe123ed457d3052d1f782c2033579 /Source | |
parent | 90c616b936027ee7db2507d6310cb2f80459bda6 (diff) | |
parent | aeddf63587c242a7995598f4b1a5f248e4e3cb13 (diff) | |
download | CMake-d798d2f7c5cc6b3fc69974f8d9392265228dbe5b.zip CMake-d798d2f7c5cc6b3fc69974f8d9392265228dbe5b.tar.gz CMake-d798d2f7c5cc6b3fc69974f8d9392265228dbe5b.tar.bz2 |
Merge topic 'argument-parser-warning'
aeddf63587 cmArgumentParser: Fix -Wcomma warning
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3214
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmArgumentParser.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmArgumentParser.cxx b/Source/cmArgumentParser.cxx index 9a9932c..751d117 100644 --- a/Source/cmArgumentParser.cxx +++ b/Source/cmArgumentParser.cxx @@ -55,7 +55,7 @@ void Instance::Bind(StringList& val) void Instance::Bind(MultiStringList& val) { this->CurrentString = nullptr; - this->CurrentList = (val.emplace_back(), &val.back()); + this->CurrentList = (static_cast<void>(val.emplace_back()), &val.back()); this->ExpectValue = false; } |