summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2005-06-27 01:01:07 +0000
committerPaul Smith <psmith@gnu.org>2005-06-27 01:01:07 +0000
commitda1b137e389365ddfb9d16b3d6761cf1a3986e0b (patch)
tree14a9a1f8b975eaae55a686ff2dc6d602c201b2aa /read.c
parentd6a7894d3a6bdb45def58b2fdfb0629233f4f38b (diff)
downloadgunmake-da1b137e389365ddfb9d16b3d6761cf1a3986e0b.tar.gz
Fix strerror() handling for systems which set ANSI_STRING.
Don't print errors if "include" is specified with no arguments. New test suite for the $(shell ...) function.
Diffstat (limited to 'read.c')
-rw-r--r--read.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/read.c b/read.c
index 024567a..a6e18b0 100644
--- a/read.c
+++ b/read.c
@@ -800,12 +800,10 @@ eval (struct ebuffer *ebuf, int set_default)
int noerror = (p[0] != 'i');
p = allocated_variable_expand (p2);
+
+ /* If no filenames, it's a no-op. */
if (*p == '\0')
- {
- error (fstart,
- _("no file name for `%sinclude'"), noerror ? "-" : "");
- continue;
- }
+ continue;
/* Parse the list of file names. */
p2 = p;