提交 db34168a 编写于 作者: M Michal Privoznik

vsh: Mark some function arguments as unused

Some arguments in vshErrorHandler, vshReadlineCompletion and
cmdSelfTest functions are not used. Mark them as such.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 b492f7ef
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册