[PATCH] libosmo-sccp[master]: remove two compiler warnings for unused variables

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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Mon Jun 13 10:20:47 UTC 2016


Review at  https://gerrit.osmocom.org/227

remove two compiler warnings for unused variables

Change-Id: Ib358fbc29cd4d3aa18e3c106afcca627e6b668a1
---
M src/sua.c
1 file changed, 2 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/27/227/1

diff --git a/src/sua.c b/src/sua.c
index 6e187d8..0920d2b 100644
--- a/src/sua.c
+++ b/src/sua.c
@@ -793,7 +793,6 @@
 	struct xua_msg_part *data_ie = xua_msg_find_tag(xua, SUA_IEI_DATA);
 	struct msgb *upmsg;
 	struct sua_connection *conn;
-	uint8_t *cur;
 
 	/* fill conn */
 	conn = conn_create(link);
@@ -901,7 +900,6 @@
 	struct xua_msg_part *data_ie = xua_msg_find_tag(xua, SUA_IEI_DATA);
 	struct msgb *upmsg;
 	uint32_t conn_id = xua_msg_get_u32(xua, SUA_IEI_DEST_REF);
-	uint32_t cause;
 
 	/* resolve conn */
 	conn = conn_find_by_id(link, conn_id);
@@ -926,7 +924,8 @@
 	memcpy(&param->calling_addr, &conn->calling_addr,
 		sizeof(param->calling_addr));
 	//param->in_sequence_control;
-	cause = xua_msg_get_u32(xua, SUA_IEI_CAUSE);
+	/* TODO evaluate cause:
+	 * uint32_t cause = xua_msg_get_u32(xua, SUA_IEI_CAUSE); */
 	/* optional: src addr */
 	/* optional: dest addr */
 	param->importance = xua_msg_get_u32(xua, SUA_IEI_IMPORTANCE);

-- 
To view, visit https://gerrit.osmocom.org/227
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib358fbc29cd4d3aa18e3c106afcca627e6b668a1
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list