avoid compiler warning about unused parameter

* src/bridge.c (brProbeVnetHdr)
[IFF_VNET_HDR && TUNGETFEATURES && TUNGETIFF]: Use a "(void)" case
to mark the parameter as unused.  Reported by Maximilian Wilhelm in
http://thread.gmane.org/gmane.comp.emulators.libvirt/11918/focus=11917
This commit is contained in:
Jim Meyering 2009-02-17 10:26:43 +00:00
parent 6b4b4eb29c
commit cedc15019e
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,11 @@
Tue Feb 17 11:25:22 +0100 2009 Jim Meyering <meyering@redhat.com>
avoid compiler warning about unused parameter
* src/bridge.c (brProbeVnetHdr)
[IFF_VNET_HDR && TUNGETFEATURES && TUNGETIFF]: Use a "(void)" case
to mark the parameter as unused. Reported by Maximilian Wilhelm in
http://thread.gmane.org/gmane.comp.emulators.libvirt/11918/focus=11917
Tue Feb 17 11:21:00 +0100 2009 Jim Meyering <meyering@redhat.com>
don't fail daemon-conf test when configured --without-qemu

View File

@ -454,6 +454,7 @@ brProbeVnetHdr(int tapfd)
return 1;
#else
(void) tapfd;
VIR_INFO0(_("Not enabling IFF_VNET_HDR; disabled at build time"));
return 0;
#endif