[sr-dev] git:4.3:3a05838b: modules/call_control: change type to fix clang compiler warning

Daniel-Constantin Mierla miconda at gmail.com
Wed Jun 10 12:29:24 CEST 2015


Module: kamailio
Branch: 4.3
Commit: 3a05838bbd408490b660764a3601653f022a9752
URL: https://github.com/kamailio/kamailio/commit/3a05838bbd408490b660764a3601653f022a9752

Author: Mikko Lehto <mslehto at iki.fi>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-06-10T12:27:17+02:00

modules/call_control: change type to fix clang compiler warning

call_control.c:503:19: warning: implicit conversion from 'hdr_flags_t' (aka 'unsigned long long') to 'int' changes value from 18446744073709551615 to -1 [-Wconstant-conversion]
(cherry picked from commit f6fc513ad968c40d1c990024c4985fa285ba93b6)

---

Modified: modules/call_control/call_control.c

---

Diff:  https://github.com/kamailio/kamailio/commit/3a05838bbd408490b660764a3601653f022a9752.diff
Patch: https://github.com/kamailio/kamailio/commit/3a05838bbd408490b660764a3601653f022a9752.patch

---

diff --git a/modules/call_control/call_control.c b/modules/call_control/call_control.c
index 45b9b42..62af924 100644
--- a/modules/call_control/call_control.c
+++ b/modules/call_control/call_control.c
@@ -490,7 +490,7 @@ static CallInfo*
 get_call_info(struct sip_msg *msg, CallControlAction action)
 {
     static CallInfo call_info;
-    int headers;
+    hdr_flags_t headers;
 
     memset(&call_info, 0, sizeof(struct CallInfo));
 




More information about the sr-dev mailing list