]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix compiler warning from compiling with clang.
authorAndres Mejia <amejia004@gmail.com>
Fri, 22 Feb 2013 01:14:16 +0000 (20:14 -0500)
committerAndres Mejia <amejia004@gmail.com>
Fri, 22 Feb 2013 01:14:16 +0000 (20:14 -0500)
Assigning from a read-only variable to a regular variable will issue
a warning from clang.

libarchive/test/test_archive_string.c

index 1abd2b21b178cfb935a22943743fbb72ada19498..20e03d6e37571465771655c80ee77fb7fe4f96d9 100644 (file)
@@ -384,7 +384,7 @@ DEFINE_TEST(test_archive_string_sort)
   size = sizeof(strings) / sizeof(char *);
   assert((test_strings = (char **)calloc(1, sizeof(strings))) != NULL);
   for (i = 0; i < size; i++)
-    test_strings[i] = strings[i];
+    test_strings[i] = (char*)strings[i];
 
   /* Shuffle the test strings */
   for (i = 0; i < (size - 1); i++)