Merge branch 'mh/w-unused-fix'

Buildfix.

* mh/w-unused-fix:
  utf8.h: squelch unused-parameter warnings with NO_ICONV
This commit is contained in:
Junio C Hamano 2024-10-04 14:21:41 -07:00
commit d30c2c4c53

5
utf8.h
View File

@ -33,8 +33,9 @@ char *reencode_string_len(const char *in, size_t insz,
const char *in_encoding,
size_t *outsz);
#else
static inline char *reencode_string_len(const char *a, size_t b,
const char *c, const char *d, size_t *e)
static inline char *reencode_string_len(const char *a UNUSED, size_t b UNUSED,
const char *c UNUSED,
const char *d UNUSED, size_t *e)
{ if (e) *e = 0; return NULL; }
#endif