bsc: Fix tons of TTCN3 compiler warnings

Change-Id: I60dc054d19a249d46d44585c17626746c34f4b09
diff --git a/library/BSSMAP_Emulation.ttcn b/library/BSSMAP_Emulation.ttcn
index 2d9effc..95b39f3 100644
--- a/library/BSSMAP_Emulation.ttcn
+++ b/library/BSSMAP_Emulation.ttcn
@@ -98,6 +98,7 @@
 
 template PDU_DTAP_MO tr_PDU_DTAP_MO(template PDU_ML3_MS_NW dtap, template OCT1 dlci := *) := {
 	dlci := dlci,
+	skip_seq_patching := ?,
 	dtap := dtap
 }
 
diff --git a/library/MGCP_Emulation.ttcn b/library/MGCP_Emulation.ttcn
index adcb8b5..aaef39e 100644
--- a/library/MGCP_Emulation.ttcn
+++ b/library/MGCP_Emulation.ttcn
@@ -267,7 +267,7 @@
 			if (p.callagent_udp_port == -1) {
 				/* we aren't yet connected to the remote side port, let's fix this */
 				p.callagent_udp_port := mrf.remPort;
-				MGCP_CodecPort_CtrlFunct.f_IPL4_connect(MGCP, p.callagent_ip, p.callagent_udp_port, p.mgw_ip, p.mgw_udp_port, g_mgcp_conn_id, { udp:={} });
+				res := MGCP_CodecPort_CtrlFunct.f_IPL4_connect(MGCP, p.callagent_ip, p.callagent_udp_port, p.mgw_ip, p.mgw_udp_port, g_mgcp_conn_id, { udp:={} });
 			}
 			if (ischosen(mrf.msg.command)) {
 				cmd := mrf.msg.command;
diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn
index ccea0f2..9258fa5 100644
--- a/library/Osmocom_VTY_Functions.ttcn
+++ b/library/Osmocom_VTY_Functions.ttcn
@@ -74,7 +74,7 @@
 
 	/* send a VTY command and obtain response until prompt is received */
 	function f_vty_transceive(TELNETasp_PT pt, charstring tx) {
-		f_vty_transceive_ret(pt, tx);
+		var charstring unused := f_vty_transceive_ret(pt, tx);
 	}
 
 	type integer BtsNr (0..255);
diff --git a/library/RSL_Emulation.ttcn b/library/RSL_Emulation.ttcn
index 20a54a9..b743d60 100644
--- a/library/RSL_Emulation.ttcn
+++ b/library/RSL_Emulation.ttcn
@@ -184,7 +184,7 @@
 
 /* create an ew client with given RA and FN */
 private function f_cid_create(OCT1 ra, GsmFrameNumber fn, RSL_DchanHdlr comp_ref)
-runs on RSL_Emulation_CT return integer {
+runs on RSL_Emulation_CT {
 	var integer i;
 	for (i := 0; i < sizeof(ConnectionTable); i := i+1) {
 		if (not ispresent(ConnectionTable[i].ra) and
@@ -192,16 +192,15 @@
 			ConnectionTable[i].ra := ra;
 			ConnectionTable[i].ra_fn := fn;
 			ConnectionTable[i].comp_ref := comp_ref;
-			return i;
+			return;
 		}
 	}
-	log("No free entry in conn table for ", ra, fn);
-	return -1;
+	setverdict(fail, "No free entry in conn table for ", ra, fn);
 }
 
 /* create an ew client with given RA and FN */
 private function f_cid_create_cnr(uint8_t trx_nr, RslChannelNr chan_nr,  RSL_DchanHdlr comp_ref)
-runs on RSL_Emulation_CT return integer {
+runs on RSL_Emulation_CT {
 	var integer i;
 	for (i := 0; i < sizeof(ConnectionTable); i := i+1) {
 		if (not ispresent(ConnectionTable[i].ra) and
@@ -210,11 +209,10 @@
 			ConnectionTable[i].trx_nr := trx_nr;
 			ConnectionTable[i].chan_nr := chan_nr;
 			ConnectionTable[i].comp_ref := comp_ref;
-			return i;
+			return;
 		}
 	}
-	log("No free entry in conn table for ", trx_nr, chan_nr, comp_ref);
-	return -1;
+	setverdict(fail, "No free entry in conn table for ", trx_nr, chan_nr, comp_ref);
 }