Skip to content

Commit e03b2a2

Browse files
glandiumgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5ecd5fa commit e03b2a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utf8.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ char *reencode_string_len(const char *in, size_t insz,
3333
const char *in_encoding,
3434
size_t *outsz);
3535
#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)
3839
{ if (e) *e = 0; return NULL; }
3940
#endif
4041

0 commit comments

Comments
 (0)