diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-07-25 14:32:33 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-07-26 00:07:39 +0100 |
commit | 76c7228ab9da699a7c7b8bd30455d2c41f900c38 (patch) | |
tree | d09980b24742827a7862dedbf929ecae1533ea22 /source/pdf | |
parent | c88a411291dd8c775645d35b4df3b83906886019 (diff) | |
download | mupdf-76c7228ab9da699a7c7b8bd30455d2c41f900c38.tar.xz |
Silence 'set but not used' warnings.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-xref.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index bc8fd5ee..27c039cd 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -1982,10 +1982,11 @@ pdf_load_hints(pdf_document *doc, int objnum, int gennum) { int i, j, least_num_page_objs, page_obj_num_bits; int least_page_len, page_len_num_bits, shared_hint_offset; - int least_page_offset, page_offset_num_bits; - int least_content_stream_len, content_stream_len_num_bits; + /* int least_page_offset, page_offset_num_bits; */ + /* int least_content_stream_len, content_stream_len_num_bits; */ int num_shared_obj_num_bits, shared_obj_num_bits; - int numerator_bits, denominator_bits, shared; + /* int numerator_bits, denominator_bits; */ + int shared; int shared_obj_num, shared_obj_offset, shared_obj_count_page1; int shared_obj_count_total; int least_shared_group_len, shared_group_len_num_bits; @@ -2018,14 +2019,14 @@ pdf_load_hints(pdf_document *doc, int objnum, int gennum) page_obj_num_bits = fz_read_bits(stream, 16); least_page_len = fz_read_bits(stream, 32); page_len_num_bits = fz_read_bits(stream, 16); - least_page_offset = fz_read_bits(stream, 32); - page_offset_num_bits = fz_read_bits(stream, 16); - least_content_stream_len = fz_read_bits(stream, 32); - content_stream_len_num_bits = fz_read_bits(stream, 16); + /* least_page_offset = */ (void) fz_read_bits(stream, 32); + /* page_offset_num_bits = */ (void) fz_read_bits(stream, 16); + /* least_content_stream_len = */ (void) fz_read_bits(stream, 32); + /* content_stream_len_num_bits = */ (void) fz_read_bits(stream, 16); num_shared_obj_num_bits = fz_read_bits(stream, 16); shared_obj_num_bits = fz_read_bits(stream, 16); - numerator_bits = fz_read_bits(stream, 16); - denominator_bits = fz_read_bits(stream, 16); + /* numerator_bits = */ (void) fz_read_bits(stream, 16); + /* denominator_bits = */ (void) fz_read_bits(stream, 16); /* Item 1: Page object numbers */ doc->hint_page[0].number = doc->linear_page1_obj_num; @@ -2138,7 +2139,7 @@ pdf_load_hints(pdf_document *doc, int objnum, int gennum) { if (doc->hint_shared[i].number) { - int dummy = fz_read_bits(stream, 128); + (void) fz_read_bits(stream, 128); } } fz_sync_bits(stream); |