[PATCH 2/2] vsh: Mark some function arguments as unused

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some arguments in vshErrorHandler, vshReadlineCompletion and
cmdSelfTest functions are not used. Mark them as such.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 tools/vsh.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/tools/vsh.c b/tools/vsh.c
index c1fc041cf..d2024be91 100644
--- a/tools/vsh.c
+++ b/tools/vsh.c
@@ -242,7 +242,8 @@ virErrorPtr last_error;
  * Quieten libvirt until we're done with the command.
  */
 void
-vshErrorHandler(void *opaque ATTRIBUTE_UNUSED, virErrorPtr error)
+vshErrorHandler(void *opaque ATTRIBUTE_UNUSED,
+                virErrorPtr error ATTRIBUTE_UNUSED)
 {
     virFreeError(last_error);
     last_error = virSaveLastError();
@@ -2856,7 +2857,9 @@ vshReadlineParse(const char *text, int state)
 }
 
 static char **
-vshReadlineCompletion(const char *text, int start, int end ATTRIBUTE_UNUSED)
+vshReadlineCompletion(const char *text,
+                      int start ATTRIBUTE_UNUSED,
+                      int end ATTRIBUTE_UNUSED)
 {
     char **matches = (char **) NULL;
 
@@ -3359,7 +3362,8 @@ const vshCmdInfo info_selftest[] = {
  * That runs vshCmddefOptParse which validates
  * the per-command options structure. */
 bool
-cmdSelfTest(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
+cmdSelfTest(vshControl *ctl ATTRIBUTE_UNUSED,
+            const vshCmd *cmd ATTRIBUTE_UNUSED)
 {
     const vshCmdGrp *grp;
     const vshCmdDef *def;
-- 
2.11.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux