Git fork

utf8.h: squelch unused-parameter warnings with NO_ICONV

Since DEVELOPER=YesPlease build enables -Wunused-parameter warnings
these days, the fallback definition for reencode_string_len() that
did not touch any of its parameters but one needs to be annotated
properly.

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Mike Hommey and committed by
Junio C Hamano
e03b2a21 5ecd5fa5

+3 -2
+3 -2
utf8.h
··· 33 33 const char *in_encoding, 34 34 size_t *outsz); 35 35 #else 36 - static inline char *reencode_string_len(const char *a, size_t b, 37 - const char *c, const char *d, size_t *e) 36 + static inline char *reencode_string_len(const char *a UNUSED, size_t b UNUSED, 37 + const char *c UNUSED, 38 + const char *d UNUSED, size_t *e) 38 39 { if (e) *e = 0; return NULL; } 39 40 #endif 40 41