diff options
| author | Simon Tatham <anakin@pobox.com> | 2008-11-21 19:20:12 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2008-11-21 19:20:12 +0000 |
| commit | dcc61488e0cf7862bbbf654f4b54fcf12b804c59 (patch) | |
| tree | 2cca6b77e5f9dba50c5d30660d21946437117b5d | |
| parent | 73e8c7d1b4ac77ec1b5acc700cb3af277a150bcf (diff) | |
| download | halibut-dcc61488e0cf7862bbbf654f4b54fcf12b804c59.zip halibut-dcc61488e0cf7862bbbf654f4b54fcf12b804c59.tar.gz halibut-dcc61488e0cf7862bbbf654f4b54fcf12b804c59.tar.bz2 halibut-dcc61488e0cf7862bbbf654f4b54fcf12b804c59.tar.xz | |
Clean up some compiler warnings.
[originally from svn r8310]
| -rw-r--r-- | bk_pdf.c | 4 | ||||
| -rw-r--r-- | deflate.c | 9 |
2 files changed, 7 insertions, 6 deletions
@@ -232,7 +232,7 @@ void pdf_backend(paragraph *sourceform, keywordlist *keywords, continue; idx = sfnt_glyphtoindex(fe->font->info->fontfile, fe->vector[i]); - if (start >= 0 && idx - startidx == i - start) { + if (start >= 0 && idx - startidx == (unsigned)(i - start)) { if (ranges[start] == 1) { nranges++; nchars--; } @@ -303,7 +303,7 @@ void pdf_backend(paragraph *sourceform, keywordlist *keywords, objtext(cidfont, "/FontDescriptor "); objref(cidfont, fontdesc); objtext(cidfont, "\n/W[0["); - for (i = 0; i < sfnt_nglyphs(fe->font->info->fontfile); i++) { + for (i = 0; i < (int)sfnt_nglyphs(fe->font->info->fontfile); i++) { char buf[20]; double width; width = find_width(fe->font, @@ -95,7 +95,7 @@ #define debug_int(x...) ( fprintf(stderr, x) ) #define debug(x) ( debug_int x ) #else -#define debug(x) +#define debug(x) ((void)0) #endif #ifdef STANDALONE @@ -1576,11 +1576,11 @@ deflate_compress_ctx *deflate_compress_new(int type) { int i; - for (i = 0; i < lenof(out->static_len1); i++) + for (i = 0; i < (int)lenof(out->static_len1); i++) out->static_len1[i] = (i < 144 ? 8 : i < 256 ? 9 : i < 280 ? 7 : 8); - for (i = 0; i < lenof(out->static_len2); i++) + for (i = 0; i < (int)lenof(out->static_len2); i++) out->static_len2[i] = 5; } hufcodes(out->static_len1, out->static_code1, lenof(out->static_code1)); @@ -2041,7 +2041,8 @@ int deflate_decompress_data(deflate_decompress_ctx *dctx, { const coderecord *rec; const unsigned char *block = (const unsigned char *)vblock; - int code, bfinal, btype, rep, dist, nlen, header, cksum; + int code, bfinal, btype, rep, dist, nlen, header; + unsigned long cksum; int error = 0; if (len == 0) { |