mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
b492f7ef0f
commit
db34168a7f
10
tools/vsh.c
10
tools/vsh.c
@ -242,7 +242,8 @@ virErrorPtr last_error;
|
|||||||
* Quieten libvirt until we're done with the command.
|
* Quieten libvirt until we're done with the command.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
vshErrorHandler(void *opaque ATTRIBUTE_UNUSED, virErrorPtr error)
|
vshErrorHandler(void *opaque ATTRIBUTE_UNUSED,
|
||||||
|
virErrorPtr error ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
virFreeError(last_error);
|
virFreeError(last_error);
|
||||||
last_error = virSaveLastError();
|
last_error = virSaveLastError();
|
||||||
@ -2856,7 +2857,9 @@ vshReadlineParse(const char *text, int state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char **
|
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;
|
char **matches = (char **) NULL;
|
||||||
|
|
||||||
@ -3359,7 +3362,8 @@ const vshCmdInfo info_selftest[] = {
|
|||||||
* That runs vshCmddefOptParse which validates
|
* That runs vshCmddefOptParse which validates
|
||||||
* the per-command options structure. */
|
* the per-command options structure. */
|
||||||
bool
|
bool
|
||||||
cmdSelfTest(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
|
cmdSelfTest(vshControl *ctl ATTRIBUTE_UNUSED,
|
||||||
|
const vshCmd *cmd ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
const vshCmdGrp *grp;
|
const vshCmdGrp *grp;
|
||||||
const vshCmdDef *def;
|
const vshCmdDef *def;
|
||||||
|
Loading…
Reference in New Issue
Block a user