]> xenbits.xensource.com Git - libvirt.git/commitdiff
avoid compiler warning about unused parameter
authorJim Meyering <meyering@redhat.com>
Tue, 17 Feb 2009 10:26:43 +0000 (10:26 +0000)
committerJim Meyering <meyering@redhat.com>
Tue, 17 Feb 2009 10:26:43 +0000 (10:26 +0000)
* 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

ChangeLog
src/bridge.c

index 11f54f0b4966c49ffb319079b9bef88b1cc5272e..eb7902398a8fceb4fe17ac95e58a116078905126 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index fc1142966f87296e7f6849033fce4d6e9199e3af..668dcf04bd13944a37e29a5252661cc6752d3e04 100644 (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