summaryrefslogtreecommitdiff
path: root/ar.c
diff options
context:
space:
mode:
Diffstat (limited to 'ar.c')
-rw-r--r--ar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ar.c b/ar.c
index 8bfca1c..95dcbbb 100644
--- a/ar.c
+++ b/ar.c
@@ -273,7 +273,8 @@ ar_glob (const char *arname, const char *member_pattern, unsigned int size)
names[i++] = n->name;
/* Sort them alphabetically. */
- qsort (names, i, sizeof (*names), alpha_compare);
+ /* MSVC erroneously warns without a cast here. */
+ qsort ((void *)names, i, sizeof (*names), alpha_compare);
/* Put them back into the chain in the sorted order. */
i = 0;