From fdc59e4e7e24bf7a54d086faeabed505c8334604 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Mon, 24 Jun 2019 22:39:29 -0700 Subject: [PATCH] fs_darwin fix warning: '&&' within '||' place parentheses around the '&&' expression to silence this warning Change-Id: Ie6152d2371ed65f57e6e75c9541263a5e1511513 Reviewed-on: https://review.haiku-os.org/c/1532 Reviewed-by: Adrien Destugues --- src/build/libroot/fs_darwin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build/libroot/fs_darwin.cpp b/src/build/libroot/fs_darwin.cpp index f4d11b690e..3b2e9fec82 100644 --- a/src/build/libroot/fs_darwin.cpp +++ b/src/build/libroot/fs_darwin.cpp @@ -471,10 +471,10 @@ linkat(int oldFD, const char *oldPath, int newFD, const char *newPath, bool ignoreOldFD = false; bool ignoreNewFD = false; - if (oldFD == AT_FDCWD || oldPath != NULL && oldPath[0] == '/') + if (oldFD == AT_FDCWD || (oldPath != NULL && oldPath[0] == '/')) ignoreOldFD = true; - if (newFD == AT_FDCWD || newPath != NULL && newPath[0] == '/') + if (newFD == AT_FDCWD || (newPath != NULL && newPath[0] == '/')) ignoreNewFD = true; if (ignoreOldFD && ignoreNewFD) {