summaryrefslogtreecommitdiff
path: root/vpath.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2010-07-19 07:10:53 +0000
committerPaul Smith <psmith@gnu.org>2010-07-19 07:10:53 +0000
commit9b6d1b0508c3d0e664281883a8ac8e79bb440a8f (patch)
tree4cf2063962595ca40234d4832a00f7eeb7ebb321 /vpath.c
parent6128543aa71dafd62a34b91955d71af450d3a506 (diff)
downloadmake-9b6d1b0508c3d0e664281883a8ac8e79bb440a8f.tar.gz
- Many fixup patches from Savannah.
- Fix the test suite on Solaris (from Boris) - Update the manual for .ONESHELL
Diffstat (limited to 'vpath.c')
-rw-r--r--vpath.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vpath.c b/vpath.c
index 2d3a8334..9f41b275 100644
--- a/vpath.c
+++ b/vpath.c
@@ -192,7 +192,8 @@ construct_vpath_list (char *pattern, char *dirpath)
lastpath->next = next;
/* Free its unused storage. */
- free (path->searchpath);
+ /* MSVC erroneously warns without a cast here. */
+ free ((void *)path->searchpath);
free (path);
}
else
@@ -297,7 +298,8 @@ construct_vpath_list (char *pattern, char *dirpath)
}
else
/* There were no entries, so free whatever space we allocated. */
- free (vpath);
+ /* MSVC erroneously warns without a cast here. */
+ free ((void *)vpath);
}
/* Search the GPATH list for a pathname string that matches the one passed