[PATCH] tools: avoid unused parameter warning when readline is disabled

Ján Tomko jtomko at redhat.com
Fri Sep 4 16:22:58 UTC 2020


On a Friday in 2020, Daniel P. Berrangé wrote:
>The vshReadlineHistoryAdd stub method does not use its parameter.
>
>Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
>---
>
>Pushed to fix minimal build used by layered repo CI
>

Which repo?

Jano

> tools/vsh.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/tools/vsh.c b/tools/vsh.c
>index ef2a3f62d7..0e8edcd78c 100644
>--- a/tools/vsh.c
>+++ b/tools/vsh.c
>@@ -2971,7 +2971,7 @@ vshReadline(vshControl *ctl G_GNUC_UNUSED,
> }
>
> void
>-vshReadlineHistoryAdd(const char *cmd)
>+vshReadlineHistoryAdd(const char *cmd G_GNUC_UNUSED)
> {
>     /* empty */
> }
>-- 
>2.26.2
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200904/d1a48e73/attachment-0001.sig>


More information about the libvir-list mailing list