Commit 563ec087 authored by Kevin Locke's avatar Kevin Locke Committed by David Gibson

configurator: Fix compiler warning with compare

Visual Studio prints warning C4706 "assignment within conditional
expression" when there is an assignment without a comparison in a
conditional expression.  Therefore, to silence the warning, add an
explicit comparison.
Signed-off-by: default avatarKevin Locke <kevin@kevinlocke.name>
Reviewed-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent f3b3bedf
......@@ -489,7 +489,7 @@ static bool run_test(const char *cmd, struct test *test)
char *dep;
/* Space-separated dependencies, could be ! for inverse. */
while ((len = strcspn(deps, " "))) {
while ((len = strcspn(deps, " ")) != 0) {
bool positive = true;
if (deps[len]) {
dep = strdup(deps);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment