* src/sfnt/pngshim.c (premultiply_data): Fix compiler warnings.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
diff --git a/ChangeLog b/ChangeLog
index 06ea99e..ca92d32 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-08-16 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/pngshim.c (premultiply_data): Fix compiler warnings.
+
2017-08-15 Behdad Esfahbod <behdad@behdad.org>
[sfnt] Speed up PNG image loading.
diff --git a/src/sfnt/pngshim.c b/src/sfnt/pngshim.c
index 90a5669..503ea43 100644
--- a/src/sfnt/pngshim.c
+++ b/src/sfnt/pngshim.c
@@ -57,8 +57,6 @@
{
unsigned int i = 0, limit;
- FT_UNUSED( png );
-
/* the `vector_size' attribute was introduced in gcc 3.1, which */
/* predates clang; the `__BYTE_ORDER__' preprocessor symbol was */
/* introduced in gcc 4.6 and clang 3.2, respectively */
@@ -78,7 +76,7 @@
limit = row_info->rowbytes - 16 + 1;
for ( ; i < limit; i += 16 )
{
- char* base = &data[i];
+ unsigned char* base = &data[i];
v82 s, s0, s1, a;
v82 ma = { 1, 1, 3, 3, 5, 5, 7, 7 };
@@ -106,6 +104,8 @@
}
#endif /* use `vector_size' */
+ FT_UNUSED( png );
+
limit = row_info->rowbytes;
for ( ; i < limit; i += 4 )
{