diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-02-25 17:58:00 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-02-25 17:58:00 +0000 |
commit | 1cf46a6792a9e243edb857e131e44338bcbbd341 (patch) | |
tree | 9d145155307f4bc19746e486c7cd49ef897a49a1 /image/gifread.c | |
parent | 674591f63df9c9b1e8e02aef4992a24b39cda0fc (diff) | |
download | netsurf-1cf46a6792a9e243edb857e131e44338bcbbd341.tar.gz netsurf-1cf46a6792a9e243edb857e131e44338bcbbd341.tar.bz2 |
SignednessWarnings.squash()
Aside from a number of instances of const being cast away (mostly relating to the urldb, which is correct to only export const data) this now builds warning-free with GCC 4 on x86, which is nice.
svn path=/trunk/netsurf/; revision=3868
Diffstat (limited to 'image/gifread.c')
-rw-r--r-- | image/gifread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/image/gifread.c b/image/gifread.c index ce826b006..30fd19e0f 100644 --- a/image/gifread.c +++ b/image/gifread.c @@ -149,7 +149,7 @@ int gif_initialise(struct gif_animation *gif) { /* Check we are a GIF */ - if (strncmp(gif_data, "GIF", 3) != 0) + if (strncmp((const char *) gif_data, "GIF", 3) != 0) return GIF_DATA_ERROR; gif_data += 3; @@ -410,7 +410,8 @@ int gif_initialise_frame(struct gif_animation *gif) { */ } else if ((gif_data[1] == 0xff) && (gif_data[2] == 0x0b) && - (strncmp(gif_data + 3, "NETSCAPE2.0", 11) == 0) && + (strncmp((const char *) gif_data + 3, + "NETSCAPE2.0", 11) == 0) && (gif_data[14] == 0x03) && (gif_data[15] == 0x01)) { gif->loop_count = gif_data[16] | (gif_data[17] << 8); |