With --enable-iptables-lokkit=no, avoid warning about unused parameter.

* src/iptables.c (iptRulesSave) [!ENABLE_IPTABLES_LOKKIT]:
Mark parameter as used.
This commit is contained in:
Jim Meyering 2008-02-22 12:34:27 +00:00
parent bdbce64bab
commit 6187c6de9b
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,9 @@
Fri Feb 22 13:32:11 CET 2008 Jim Meyering <meyering@redhat.com> 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. With --without-xen, avoid warning about unused function.
* tests/statstest.c (testQuietError) [!WITH_XEN]: Don't define. * tests/statstest.c (testQuietError) [!WITH_XEN]: Don't define.

View File

@ -256,6 +256,8 @@ iptRulesSave(iptRules *rules)
notifyRulesUpdated(rules->table, rules->path); notifyRulesUpdated(rules->table, rules->path);
else else
notifyRulesRemoved(rules->table, rules->path); notifyRulesRemoved(rules->table, rules->path);
#else
(void) rules;
#endif /* ENABLE_IPTABLES_LOKKIT */ #endif /* ENABLE_IPTABLES_LOKKIT */
} }