From: Grant Erickson <gerickson@nuovations.com>
To: connman@lists.linux.dev
Subject: [PATCH] Address -Werror=unused-but-set-parameter compilation errors.
Date: Tue, 31 Oct 2023 21:55:05 -0700 [thread overview]
Message-ID: <28C6849C-16CE-4125-8FA9-B1F2CA52D733@nuovations.com> (raw)
This addresses -Werror=unused-but-set-parameter compilation errors
surfaced by GCC when --enable-maintainer-mode is asserted.
---
unit/test-iptables.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/unit/test-iptables.c b/unit/test-iptables.c
index 2d655d38..a96d8679 100644
--- a/unit/test-iptables.c
+++ b/unit/test-iptables.c
@@ -210,8 +210,6 @@ void xtables_option_mfcall(struct xtables_match *m)
if (test_config_type & TEST_CONFIG_MFCALL_FAIL)
call_error("xtables_option_mfcall");
- m = &xt_match;
-
return;
}
@@ -222,8 +220,6 @@ void xtables_option_tfcall(struct xtables_target *t)
if (test_config_type & TEST_CONFIG_TFCALL_FAIL)
call_error("xtables_option_tfcall");
- t = &xt_target;
-
return;
}
@@ -235,8 +231,6 @@ void xtables_option_mpcall(unsigned int c, char **argv, bool invert,
if (test_config_type & TEST_CONFIG_MPCALL_FAIL)
call_error("xtables_option_mpcall");
- m = &xt_match;
-
return;
}
@@ -248,8 +242,6 @@ void xtables_option_tpcall(unsigned int c, char **argv, bool invert,
if (test_config_type & TEST_CONFIG_TPCALL_FAIL)
call_error("xtables_option_tpcall");
- t = &xt_target;
-
return;
}
--
2.42.0
next reply other threads:[~2023-11-01 4:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-01 4:55 Grant Erickson [this message]
2023-11-07 15:31 ` [PATCH] Address -Werror=unused-but-set-parameter compilation errors Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=28C6849C-16CE-4125-8FA9-B1F2CA52D733@nuovations.com \
--to=gerickson@nuovations.com \
--cc=connman@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).