From: Linus Torvalds Date: Mon, 20 Jun 2005 03:15:22 +0000 (-0700) Subject: Avoid gcc warning in diff-stages.c X-Git-Tag: v0.99~233 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fc4263ce4b6a613622dbe985a8e6aca015789cf1;p=git.git Avoid gcc warning in diff-stages.c Put explicit parentheses around && in ||-expression. --- diff --git a/diff-stages.c b/diff-stages.c index f0998149c..9d8cc73e6 100644 --- a/diff-stages.c +++ b/diff-stages.c @@ -107,7 +107,7 @@ int main(int ac, const char **av) ! (0 <= stage1 && stage1 <= 3) || sscanf(av[2], "%d", &stage2) != 1 || ! (0 <= stage2 && stage2 <= 3) || - find_copies_harder && detect_rename != DIFF_DETECT_COPY) + (find_copies_harder && detect_rename != DIFF_DETECT_COPY)) usage(diff_stages_usage); av += 3; /* The rest from av[0] are for paths restriction. */