]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
With --enable-iptables-lokkit=no, avoid warning about unused parameter.
authorJim Meyering <meyering@redhat.com>
Fri, 22 Feb 2008 12:34:27 +0000 (12:34 +0000)
committerJim Meyering <meyering@redhat.com>
Fri, 22 Feb 2008 12:34:27 +0000 (12:34 +0000)
* src/iptables.c (iptRulesSave) [!ENABLE_IPTABLES_LOKKIT]:
Mark parameter as used.

ChangeLog
src/iptables.c

index fc549b2f0bc6e6d556f98f6b7585d33972785500..1ca93a6cf3d09b5fc7911cda558807782e639bc6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 Fri Feb 22 13:32:11 CET 2008 Jim Meyering <meyering@redhat.com>
 
+       With --enable-iptables-lokkit=no, avoid warning about unused parameter.
+       * src/iptables.c (iptRulesSave) [!ENABLE_IPTABLES_LOKKIT]:
+       Mark parameter as used.
+
        With --without-xen, avoid warning about unused function.
        * tests/statstest.c (testQuietError) [!WITH_XEN]: Don't define.
 
index 04b1da6936b85f1a3d282a21626dc4db691bfcc2..f9707010b32d87c9ffb9fdb94adb87b5b11e4139 100644 (file)
@@ -256,6 +256,8 @@ iptRulesSave(iptRules *rules)
         notifyRulesUpdated(rules->table, rules->path);
     else
         notifyRulesRemoved(rules->table, rules->path);
+#else
+    (void) rules;
 #endif /* ENABLE_IPTABLES_LOKKIT */
 }