summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-04-12 11:57:54 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-04-12 11:58:01 (GMT)
commitd798d2f7c5cc6b3fc69974f8d9392265228dbe5b (patch)
treeea069a42692fe123ed457d3052d1f782c2033579 /Source
parent90c616b936027ee7db2507d6310cb2f80459bda6 (diff)
parentaeddf63587c242a7995598f4b1a5f248e4e3cb13 (diff)
downloadCMake-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.cxx2
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;
}