diff options
| author | rillig <rillig@NetBSD.org> | 2021-04-19 23:51:42 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2021-04-19 23:51:42 +0000 |
| commit | 00bc35960805f6e90bb98ff718e6ec3a4df86c8a (patch) | |
| tree | 3f4ff79a1310ba6dd01e9da8ad9b261bcf09bd65 /usr.bin/make/cond.c | |
| parent | 27df4325212d8f76b404a8ade9047c6db74d2561 (diff) | |
make: do not complain when skipping the condition 'no >= 10'
Seen in external/bsd/tmux when building with Clang. See
varmod-ifelse.mk for the detailed story.
Diffstat (limited to 'usr.bin/make/cond.c')
| -rw-r--r-- | usr.bin/make/cond.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/cond.c b/usr.bin/make/cond.c index bcb31e9687c..5b8146ae17b 100644 --- a/usr.bin/make/cond.c +++ b/usr.bin/make/cond.c @@ -1,4 +1,4 @@ -/* $NetBSD: cond.c,v 1.261 2021/04/04 11:56:43 rillig Exp $ */ +/* $NetBSD: cond.c,v 1.262 2021/04/19 23:51:42 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. @@ -95,7 +95,7 @@ #include "dir.h" /* "@(#)cond.c 8.2 (Berkeley) 1/2/94" */ -MAKE_RCSID("$NetBSD: cond.c,v 1.261 2021/04/04 11:56:43 rillig Exp $"); +MAKE_RCSID("$NetBSD: cond.c,v 1.262 2021/04/19 23:51:42 rillig Exp $"); /* * The parsing of conditional expressions is based on this grammar: @@ -854,7 +854,7 @@ CondParser_LeafToken(CondParser *par, bool doEval) arglen = ParseFuncArg(par, &cp, doEval, NULL, &arg); cp1 = cp; cpp_skip_whitespace(&cp1); - if (*cp1 == '=' || *cp1 == '!') + if (*cp1 == '=' || *cp1 == '!' || *cp1 == '<' || *cp1 == '>') return CondParser_Comparison(par, doEval); par->p = cp; |
