clang complains:
readelf.c:12205:72: error: parameter 'desc' set but not used
[-Werror,-Wunused-but-set-parameter]
handle_bit_registers (const Ebl_Register_Location *regloc, const void *desc,
^
Apparently handle_bit_registers() is unimplemented, but one line is
still written for the future. Silence the warning by casting desc to
void.
Signed-off-by: Ilya Leoshkevich <[email protected]>
---
src/readelf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/readelf.c b/src/readelf.c
index 51b0e8b9..f09c5c9b 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -12206,6 +12206,7 @@ handle_bit_registers (const Ebl_Register_Location
*regloc, const void *desc,
unsigned int colno)
{
desc += regloc->offset;
+ (void)desc;
abort (); /* XXX */
return colno;
--
2.39.1