libvirt/src/xen
Eric Blake 088473b29f build: avoid ATTRIBUTE_UNUSED in headers
The compiler might optimize based on our declaration that something
is unused.  Putting that declaration in the header risks getting
out of sync with the actual implementation, so it belongs better
only in the .c files.  We were mostly compliant, and a new syntax
check will help us in the future.

* cfg.mk (sc_avoid_attribute_unused_in_header): New syntax check.
* src/nodeinfo.h (nodeGetCPUStats, nodeGetMemoryStats): Delete
attribute already present in .c file.
* src/qemu/qemu_domain.h (qemuDomainEventFlush): Likewise.
* src/util/virterror_internal.h (virReportErrorHelper): Parameters
are actually used by .c file.
* src/xenxs/xen_sxpr.h (xenFormatSxprDisk): Adjust prototype.
* src/xenxs/xen_sxpr.c (xenFormatSxprDisk): Delete unused argument.
(xenFormatSxpr): Adjust caller.
* src/xen/xend_internal.c (xenDaemonAttachDeviceFlags)
(xenDaemonUpdateDeviceFlags): Likewise.
Suggested by Daniel Veillard.
2011-07-14 07:51:30 -06:00
..
block_stats.c xen: Replace statsErrorFunc with a macro 2011-04-17 07:53:26 +02:00
block_stats.h Remove virConnectPtr from virRaiseErrorFull 2011-04-17 07:22:23 +02:00
xen_driver.c Add domain type checking 2011-07-11 19:38:51 +02:00
xen_driver.h xen: avoid PATH_MAX-sized array 2011-06-22 17:13:58 -06:00
xen_hypervisor.c drivers: prefer unsigned int for flags 2011-07-07 14:15:37 -06:00
xen_hypervisor.h drivers: prefer unsigned int for flags 2011-07-07 14:15:37 -06:00
xen_inotify.c drivers: prefer unsigned int for flags 2011-07-07 14:15:37 -06:00
xen_inotify.h drivers: prefer unsigned int for flags 2011-07-07 14:15:37 -06:00
xend_internal.c build: avoid ATTRIBUTE_UNUSED in headers 2011-07-14 07:51:30 -06:00
xend_internal.h drivers: prefer unsigned int for flags 2011-07-07 14:15:37 -06:00
xm_internal.c Add domain type checking 2011-07-11 19:38:51 +02:00
xm_internal.h drivers: prefer unsigned int for flags 2011-07-07 14:15:37 -06:00
xs_internal.c drivers: prefer unsigned int for flags 2011-07-07 14:15:37 -06:00
xs_internal.h drivers: prefer unsigned int for flags 2011-07-07 14:15:37 -06:00