From 6187c6de9b16af680a9ac73ec29bd254e8f09f41 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 22 Feb 2008 12:34:27 +0000 Subject: [PATCH] With --enable-iptables-lokkit=no, avoid warning about unused parameter. * src/iptables.c (iptRulesSave) [!ENABLE_IPTABLES_LOKKIT]: Mark parameter as used. --- ChangeLog | 4 ++++ src/iptables.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index fc549b2f0b..1ca93a6cf3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ Fri Feb 22 13:32:11 CET 2008 Jim Meyering + 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. diff --git a/src/iptables.c b/src/iptables.c index 04b1da6936..f9707010b3 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -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 */ }