From: Andres Mejia Date: Fri, 22 Feb 2013 01:14:16 +0000 (-0500) Subject: Fix compiler warning from compiling with clang. X-Git-Tag: v3.1.900a~360^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8607c1b5320b614ac9eef3ddaee18f5bd450494b;p=thirdparty%2Flibarchive.git Fix compiler warning from compiling with clang. Assigning from a read-only variable to a regular variable will issue a warning from clang. --- diff --git a/libarchive/test/test_archive_string.c b/libarchive/test/test_archive_string.c index 1abd2b21b..20e03d6e3 100644 --- a/libarchive/test/test_archive_string.c +++ b/libarchive/test/test_archive_string.c @@ -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++)