1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

Fix clang 9 logical-not-parentheses warnings

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Gary Lockyer 2020-05-01 11:17:04 +12:00 committed by Andreas Schneider
parent 9df4d6ab49
commit fa8332780d
2 changed files with 1 additions and 2 deletions

View File

@ -796,7 +796,6 @@ int main(void) {
conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=missing-field-initializers', testflags=True)
conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=unused-function', testflags=True)
conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=enum-conversion', testflags=True)
conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=logical-not-parentheses', testflags=True)
conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=constant-conversion', testflags=True)
if Options.options.fatal_errors:

View File

@ -61,7 +61,7 @@ static int exec_wait(struct torture_context *tctx, const char **gpo_update_cmd)
if (!tevent_req_poll_ntstatus(req, tctx->ev, &status)) {
return -1;
}
if (!samba_runcmd_recv(req, &ret) == 0) {
if (samba_runcmd_recv(req, &ret) != 0) {
return -1;
}
return ret;