Skip to content

cmArgumentParser: Fix -Wcomma warning

Brad King requested to merge brad.king/cmake:argument-parser-warning into master

Clang -Wcomma warns:

Source/cmArgumentParser.cxx:58:42: warning: possible misuse of comma operator
  this->CurrentList = (val.emplace_back(), &val.back());
                                         ^

This was introduced by !3137 (merged). Suppress it with the suggested cast.

Merge request reports