mirror of
https://github.com/mirror/make.git
synced 2024-12-29 14:30:42 +08:00
* read.c (eval): Avoid GCC warning to add braces.
This commit is contained in:
parent
74ed682c54
commit
d654bff457
5
read.c
5
read.c
@ -1117,14 +1117,15 @@ eval (struct ebuffer *ebuf, int set_default)
|
|||||||
it. If so, we can't parse this line so punt. */
|
it. If so, we can't parse this line so punt. */
|
||||||
if (wtype == w_eol)
|
if (wtype == w_eol)
|
||||||
{
|
{
|
||||||
if (*p2 != '\0')
|
if (*p2 == '\0')
|
||||||
|
continue;
|
||||||
|
|
||||||
/* There's no need to be ivory-tower about this: check for
|
/* There's no need to be ivory-tower about this: check for
|
||||||
one of the most common bugs found in makefiles... */
|
one of the most common bugs found in makefiles... */
|
||||||
if (cmd_prefix == '\t' && !strneq (line, " ", 8))
|
if (cmd_prefix == '\t' && !strneq (line, " ", 8))
|
||||||
fatal (fstart, _("missing separator (did you mean TAB instead of 8 spaces?)"));
|
fatal (fstart, _("missing separator (did you mean TAB instead of 8 spaces?)"));
|
||||||
else
|
else
|
||||||
fatal (fstart, _("missing separator"));
|
fatal (fstart, _("missing separator"));
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make the colon the end-of-string so we know where to stop
|
/* Make the colon the end-of-string so we know where to stop
|
||||||
|
Loading…
Reference in New Issue
Block a user