Thread (5 messages) 5 messages, 3 authors, 2024-10-03
STALE664d

[PATCH] Fix unused-parameter warnings with NO_ICONV

From: Mike Hommey <hidden>
Date: 2024-10-02 20:02:01
Subsystem: the rest · Maintainer: Linus Torvalds

The jk/unused-parameters topic enabled -Wunused-parameter. Some code in
some non-typical configuration lacked annotations.

Signed-off-by: Mike Hommey <redacted>
---
 utf8.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/utf8.h b/utf8.h
index fcd5167baf..cce299d274 100644
--- a/utf8.h
+++ b/utf8.h
@@ -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
 
-- 
2.46.1.1.gad55fb22ef
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help