From: Laine Stump Date: Mon, 26 Mar 2012 16:58:05 +0000 (-0400) Subject: build: fix "missing initializer" errors in virsh.c X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=05c25e6071494151685a0e5166c6b1ab248e7928;p=libvirt.git build: fix "missing initializer" errors in virsh.c Found when attempting to build on Fedora 17 alpha with: ./autogen.sh --system --enable-compile-warnings=error (this same build command works without problem on Fedora 16). All other struct initializers for this struct have the extra field filled in (almost always to 0), so the two errant ones were fixed by adding in the extra 0 field. --- diff --git a/tools/virsh.c b/tools/virsh.c index 1a91eaf794..5009b6bfb0 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -17152,7 +17152,7 @@ static const vshCmdDef domManagementCmds[] = { {"dumpxml", cmdDumpXML, opts_dumpxml, info_dumpxml, 0}, {"edit", cmdEdit, opts_edit, info_edit, 0}, {"inject-nmi", cmdInjectNMI, opts_inject_nmi, info_inject_nmi, 0}, - {"send-key", cmdSendKey, opts_send_key, info_send_key}, + {"send-key", cmdSendKey, opts_send_key, info_send_key, 0}, {"managedsave", cmdManagedSave, opts_managedsave, info_managedsave, 0}, {"managedsave-remove", cmdManagedSaveRemove, opts_managedsaveremove, info_managedsaveremove, 0}, @@ -17406,7 +17406,7 @@ static const vshCmdDef hostAndHypervisorCmds[] = { {"nodeinfo", cmdNodeinfo, NULL, info_nodeinfo, 0}, {"nodememstats", cmdNodeMemStats, opts_node_memstats, info_nodememstats, 0}, {"nodesuspend", cmdNodeSuspend, opts_node_suspend, info_nodesuspend, 0}, - {"qemu-attach", cmdQemuAttach, opts_qemu_attach, info_qemu_attach}, + {"qemu-attach", cmdQemuAttach, opts_qemu_attach, info_qemu_attach, 0}, {"qemu-monitor-command", cmdQemuMonitorCommand, opts_qemu_monitor_command, info_qemu_monitor_command, 0}, {"sysinfo", cmdSysinfo, NULL, info_sysinfo, 0},