Skip to content

Commit

Permalink
TIFF: ignore unused parameters of callback functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Nov 15, 2023
1 parent dfc47cf commit 046f70d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions TIFF/imtiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ static const int text_tag_count =
#define TIFFIO_MAGIC 0xC6A340CC

static void error_handler(char const *module, char const *fmt, va_list ap) {
(void)module;
mm_log((1, "tiff error fmt %s\n", fmt));
i_push_errorvf(0, fmt, ap);
}
Expand All @@ -216,6 +217,8 @@ tiffio_context_final(tiffio_context_t *c);

static void
warn_handler_ex(thandle_t h, const char *module, const char *fmt, va_list ap) {
(void)module;

tiffio_context_t *c = (tiffio_context_t *)h;
char buf[200];

Expand Down Expand Up @@ -256,6 +259,7 @@ pack_4bit_to(unsigned char *dest, const unsigned char *src, i_img_dim count);


static toff_t sizeproc(thandle_t x) {
(void)x;
return 0;
}

Expand Down Expand Up @@ -292,6 +296,9 @@ This shouldn't ever be called but newer tifflibs want it anyway.
static
int
comp_mmap(thandle_t h, tdata_t*p, toff_t*off) {
(void)h;
(void)p;
(void)off;
return -1;
}

Expand All @@ -307,6 +314,9 @@ This shouldn't ever be called but newer tifflibs want it anyway.

static void
comp_munmap(thandle_t h, tdata_t p, toff_t off) {
(void)h;
(void)p;
(void)off;
/* do nothing */
}

Expand Down

0 comments on commit 046f70d

Please sign in to comment.