Change in osmo-iuh[master]: tests/hnb-test: remove some unused variables reported by GCC

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Tue Apr 7 14:18:43 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-iuh/+/17749 )


Change subject: tests/hnb-test: remove some unused variables reported by GCC
......................................................................

tests/hnb-test: remove some unused variables reported by GCC

Change-Id: Ifcbc97633e60217494c2106d0de60480d656fae0
---
M src/tests/hnb-test.c
1 file changed, 1 insertion(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/49/17749/1

diff --git a/src/tests/hnb-test.c b/src/tests/hnb-test.c
index 27959ec..409da2b 100644
--- a/src/tests/hnb-test.c
+++ b/src/tests/hnb-test.c
@@ -81,7 +81,6 @@
 static int hnb_test_ue_de_register_tx(struct hnb_test *hnb_test)
 {
 	struct msgb *msg;
-	int rc, imsi_len;
 	uint32_t ctx_id;
 
 	UEDe_Register_t dereg;
@@ -110,7 +109,7 @@
 static int hnb_test_ue_register_tx(struct hnb_test *hnb_test, const char *imsi_str)
 {
 	struct msgb *msg;
-	int rc, imsi_len;
+	int imsi_len;
 
 	char imsi_buf[16];
 
@@ -320,7 +319,6 @@
 				    int len)
 {
 	struct gsm48_auth_req *ar;
-	int parse_res;
 
 	len -= (const char *)&gh->data[0] - (const char *)gh;
 
@@ -629,7 +627,6 @@
 
 static int hnb_write_cb(struct osmo_fd *fd, struct msgb *msg)
 {
-	struct hnb_test *ctx = fd->data;
 	struct sctp_sndrcvinfo sinfo = {
 		.sinfo_ppid = htonl(msgb_sctp_ppid(msg)),
 		.sinfo_stream = 0,

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/17749
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: Ifcbc97633e60217494c2106d0de60480d656fae0
Gerrit-Change-Number: 17749
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200407/84ce32f7/attachment.htm>


More information about the gerrit-log mailing list