]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tools: avoid unused parameter warning when readline is disabled
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 4 Sep 2020 09:17:30 +0000 (10:17 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 4 Sep 2020 09:17:30 +0000 (10:17 +0100)
The vshReadlineHistoryAdd stub method does not use its parameter.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tools/vsh.c

index ef2a3f62d74618f9f1e90510e82d58f346fdf665..0e8edcd78cac301f45848a4864f899e03cdf286f 100644 (file)
@@ -2971,7 +2971,7 @@ vshReadline(vshControl *ctl G_GNUC_UNUSED,
 }
 
 void
-vshReadlineHistoryAdd(const char *cmd)
+vshReadlineHistoryAdd(const char *cmd G_GNUC_UNUSED)
 {
     /* empty */
 }