summaryrefslogtreecommitdiff
path: root/rule.c
diff options
context:
space:
mode:
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