[sr-dev] git:master:5ac0f5c4: dispatcher: get rid of compile warning about unreachable code

Daniel-Constantin Mierla miconda at gmail.com
Fri May 20 07:17:29 CEST 2016


Module: kamailio
Branch: master
Commit: 5ac0f5c43da106e8130143a2ad83d4a131513a18
URL: https://github.com/kamailio/kamailio/commit/5ac0f5c43da106e8130143a2ad83d4a131513a18

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-05-20T07:16:46+02:00

dispatcher: get rid of compile warning about unreachable code

---

Modified: modules/dispatcher/dispatch.c

---

Diff:  https://github.com/kamailio/kamailio/commit/5ac0f5c43da106e8130143a2ad83d4a131513a18.diff
Patch: https://github.com/kamailio/kamailio/commit/5ac0f5c43da106e8130143a2ad83d4a131513a18.patch

---

diff --git a/modules/dispatcher/dispatch.c b/modules/dispatcher/dispatch.c
index d93b985..e16724c 100644
--- a/modules/dispatcher/dispatch.c
+++ b/modules/dispatcher/dispatch.c
@@ -1894,7 +1894,6 @@ int ds_select_dst_limit(sip_msg_t *msg, int set, int alg, unsigned int limit, in
 				default:
 					LM_ERR("can't get authorization hash\n");
 					return -1;
-					break;
 			}
 			break;
 		case 6: /* random selection */




More information about the sr-dev mailing list