summaryrefslogtreecommitdiff
path: root/vpath.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-06-25 20:03:51 +0000
committerRoland McGrath <roland@redhat.com>1993-06-25 20:03:51 +0000
commit2e0e3d22ec80c3aab2794ecababdc3095410246d (patch)
treed1d20fc078288e6f2250302d3c2fa9545e60be27 /vpath.c
parentd3fc910b29cc67a2057b23d479924e8b5bea6592 (diff)
downloadgunmake-2e0e3d22ec80c3aab2794ecababdc3095410246d.tar.gz
Formerly vpath.c.~12~
Diffstat (limited to 'vpath.c')
-rw-r--r--vpath.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/vpath.c b/vpath.c
index db53168..ab1d039 100644
--- a/vpath.c
+++ b/vpath.c
@@ -66,7 +66,17 @@ build_vpath_lists ()
/* If there is a VPATH variable with a nonnull value, construct the
general VPATH list from it. We use variable_expand rather than just
calling lookup_variable so that it will be recursively expanded. */
- p = variable_expand ("$(VPATH)");
+
+ {
+ /* Turn off --warn-undefined-variables while we expand SHELL and IFS. */
+ int save = warn_undefined_variables_flag;
+ warn_undefined_variables_flag = 0;
+
+ p = variable_expand ("$(VPATH)");
+
+ warn_undefined_variables_flag = save;
+ }
+
if (*p != '\0')
{
construct_vpath_list ("%", p);