libvirt/src/xenxs
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
..
xen_sxpr.c build: avoid ATTRIBUTE_UNUSED in headers 2011-07-14 07:51:30 -06:00
xen_sxpr.h build: avoid ATTRIBUTE_UNUSED in headers 2011-07-14 07:51:30 -06:00
xen_xm.c support for Xen HVM Viridian (Hyper-V) enlightenment interface 2011-06-15 08:02:47 -06:00
xen_xm.h Renamed functions in xenxs 2011-02-21 11:15:08 -07:00
xenxs_private.h Remove virConnectPtr from virRaiseErrorFull 2011-04-17 07:22:23 +02:00