summaryrefslogtreecommitdiff
path: root/rule.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
commitfba20a776da6d4a36db21d9b21e9e937bef00ac3 (patch)
tree4cf2063962595ca40234d4832a00f7eeb7ebb321 /rule.c
parentdf2fa7c5a5726b4e0a50e0eff209a3518ab19603 (diff)
downloadgunmake-fba20a776da6d4a36db21d9b21e9e937bef00ac3.tar.gz
- Many fixup patches from Savannah.
- Fix the test suite on Solaris (from Boris) - Update the manual for .ONESHELL
Diffstat (limited to 'rule.c')
-rw-r--r--rule.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rule.c b/rule.c
index 0e6ddb7..a966cc9 100644
--- a/rule.c
+++ b/rule.c
@@ -404,8 +404,9 @@ freerule (struct rule *rule, struct rule *lastrule)
free_dep_chain (rule->deps);
- free (rule->targets);
- free (rule->suffixes);
+ /* MSVC erroneously warns without a cast here. */
+ free ((void *)rule->targets);
+ free ((void *)rule->suffixes);
free (rule->lens);
/* We can't free the storage for the commands because there