summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-10-19 12:07:31 -0400
committerPaul Smith <psmith@gnu.org>2013-10-19 12:07:31 -0400
commit14514410428e3f6a359d799b7c8b8342a227ef2d (patch)
tree6769e9892f7b6cdff5970ce3c248d827a2bd856c /read.c
parentf07da236aca02b50bcc4cb335df6dac9ce1904f5 (diff)
downloadmake-14514410428e3f6a359d799b7c8b8342a227ef2d.tar.gz
* read.c (eval): Avoid GCC warning to add braces.
Diffstat (limited to 'read.c')
-rw-r--r--read.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/read.c b/read.c
index 83224ac1..b3897b27 100644
--- a/read.c
+++ b/read.c
@@ -1117,14 +1117,15 @@ eval (struct ebuffer *ebuf, int set_default)
it. If so, we can't parse this line so punt. */
if (wtype == w_eol)
{
- if (*p2 != '\0')
- /* There's no need to be ivory-tower about this: check for
- one of the most common bugs found in makefiles... */
- if (cmd_prefix == '\t' && !strneq (line, " ", 8))
- fatal (fstart, _("missing separator (did you mean TAB instead of 8 spaces?)"));
- else
- fatal (fstart, _("missing separator"));
- continue;
+ if (*p2 == '\0')
+ continue;
+
+ /* There's no need to be ivory-tower about this: check for
+ one of the most common bugs found in makefiles... */
+ if (cmd_prefix == '\t' && !strneq (line, " ", 8))
+ fatal (fstart, _("missing separator (did you mean TAB instead of 8 spaces?)"));
+ else
+ fatal (fstart, _("missing separator"));
}
/* Make the colon the end-of-string so we know where to stop