From: John Marino Date: Tue, 10 Feb 2015 09:51:33 +0000 (+0100) Subject: ed(1): Fix [-Werror=logical-not-parentheses] X-Git-Url: https://gitweb.dragonflybsd.org/~nant/dragonfly.git/commitdiff_plain/1fff89cbaeaa43af720a1f23d9c466b756dd8a58 ed(1): Fix [-Werror=logical-not-parentheses] /usr/src/bin/ed/glbl.c:64:36: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses] Putting parenthese around the comparison makes gcc happy. --- diff --git a/bin/ed/glbl.c b/bin/ed/glbl.c index 31b39b951e..39503c75a3 100644 --- a/bin/ed/glbl.c +++ b/bin/ed/glbl.c @@ -61,7 +61,7 @@ build_active_list(int isgcmd) return ERR; if (isbinary) NUL_TO_NEWLINE(s, lp->len); - if (!regexec(pat, s, 0, NULL, 0) == isgcmd && + if (!(regexec(pat, s, 0, NULL, 0) == isgcmd) && set_active_node(lp) < 0) return ERR; }