[libss7-commits] rmudgett: trunk r322 - in /trunk: mtp3.c ss7.c

SVN commits to the libss7 project libss7-commits at lists.digium.com
Wed Nov 6 16:40:05 CST 2013


Author: rmudgett
Date: Wed Nov  6 16:40:03 2013
New Revision: 322

URL: http://svnview.digium.com/svn/libss7?view=rev&rev=322
Log:
Fix set but not used warnings from gcc 4.6.

(closes issue SS7-54)
Reported by: Tzafrir Cohen

Modified:
    trunk/mtp3.c
    trunk/ss7.c

Modified: trunk/mtp3.c
URL: http://svnview.digium.com/svn/libss7/trunk/mtp3.c?view=diff&rev=322&r1=321&r2=322
==============================================================================
--- trunk/mtp3.c (original)
+++ trunk/mtp3.c Wed Nov  6 16:40:03 2013
@@ -569,7 +569,6 @@
 	unsigned char *buf;
 	unsigned char userpart;
 	struct routing_label rl;
-	int rlsize;
 
 	if (fsn != -1) {
 		update_txbuf(NULL, from, fsn);
@@ -587,7 +586,7 @@
 	while (cur) {
 		buf = cur->buf;
 		userpart = get_userpart(buf[MTP2_SIZE]);
-		rlsize = get_routinglabel(ss7->switchtype, buf + MTP2_SIZE + 1, &rl);
+		get_routinglabel(ss7->switchtype, buf + MTP2_SIZE + 1, &rl);
 		next = cur->next;
 
 		if (userpart > 3 && (dpc == -1 || rl.dpc == dpc)) {

Modified: trunk/ss7.c
URL: http://svnview.digium.com/svn/libss7/trunk/ss7.c?view=diff&rev=322&r1=321&r2=322
==============================================================================
--- trunk/ss7.c (original)
+++ trunk/ss7.c Wed Nov  6 16:40:03 2013
@@ -545,11 +545,10 @@
 
 static inline char * mtp2state2str(struct ss7 *ss7, struct mtp2 *link)
 {
-	int mtp2state, i;
+	int i;
 
 	for (i = 0; i < ss7->numlinks; i++) {
 		if (ss7->links[i] == link) {
-			mtp2state = ss7->mtp2_linkstate[i];
 			break;
 		}
 	}




More information about the libss7-commits mailing list