sbin/pfctl: fix -Wunused-but-set-variable warning
 
M  sbin/pfctl/pfctl_optimize.c

diff 7c5dd09ecd1ff078b868c9ab52aac9754cde7761 
6e5c342a53c05496c18849837c67b7dc05ce3792
blob - 1ab170a832dd183a2895774549ff93896803039a
blob + 5736a0d7b0ba04afeed855daa61fc6b5ef3894e4
--- sbin/pfctl/pfctl_optimize.c
+++ sbin/pfctl/pfctl_optimize.c
@@ -789,7 +789,6 @@ block_feedback(struct pfctl *pf, struct superblock *bl
 {
        TAILQ_HEAD( , pf_opt_rule) queue;
        struct pf_opt_rule *por1, *por2;
-       u_int64_t total_count = 0;
        struct pf_rule a, b;
 
 
@@ -799,8 +798,6 @@ block_feedback(struct pfctl *pf, struct superblock *bl
         */
        TAILQ_FOREACH(por1, &block->sb_profiled_block->sb_rules, por_entry) {
                comparable_rule(&a, &por1->por_rule, DC);
-               total_count += por1->por_rule.packets[0] +
-                   por1->por_rule.packets[1];
                TAILQ_FOREACH(por2, &block->sb_rules, por_entry) {
                        if (por2->por_profile_count)
                                continue;

-- 
Christian "naddy" Weisgerber                          [email protected]

Reply via email to