diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-11-03 15:58:11 +0300 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:37 +0200 |
commit | 57c7577fa91ffc024e5c696a91abe19f5547a787 (patch) | |
tree | 410a09a2d1ebf6da5e770b644c7a1806f2d1aef9 /build2/test/script/script.cxx | |
parent | d933699b4dd106c227f8d07a2471d5f39f1c82af (diff) |
Fix Clang and VC warnings
Diffstat (limited to 'build2/test/script/script.cxx')
-rw-r--r-- | build2/test/script/script.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/test/script/script.cxx b/build2/test/script/script.cxx index e453d44..2679cb7 100644 --- a/build2/test/script/script.cxx +++ b/build2/test/script/script.cxx @@ -433,7 +433,7 @@ namespace build2 if (const value* v = p->vars.find (var)) return lookup (v, &p->vars); } - while (p->parent != nullptr ? (p = p->parent) : nullptr); + while ((p->parent != nullptr ? (p = p->parent) : nullptr) != nullptr); // Switch to the corresponding buildfile variable. Note that we don't // want to insert a new variable into the pool (we might be running |