]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly vpath.c.~12~
authorRoland McGrath <roland@redhat.com>
Fri, 25 Jun 1993 20:03:51 +0000 (20:03 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 25 Jun 1993 20:03:51 +0000 (20:03 +0000)
vpath.c

diff --git a/vpath.c b/vpath.c
index db53168dbeaa1cc8d103732711e8af02899093fc..ab1d0398b3bbae516db945143dd64787bb6c0c75 100644 (file)
--- 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);