[sr-dev] git:4.3:803321f1: modules/call_control: fixes clang compile warning

Victor Seva linuxmaniac at torreviejawireless.org
Fri Jun 5 10:16:24 CEST 2015


Module: kamailio
Branch: 4.3
Commit: 803321f14153fb0ae87f99771c5d03ec6783dddd
URL: https://github.com/kamailio/kamailio/commit/803321f14153fb0ae87f99771c5d03ec6783dddd

Author: Mikko Lehto <mslehto at iki.fi>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2015-06-05T10:15:09+02:00

modules/call_control: fixes clang compile warning

- warning: expression which evaluates to zero treated as a null pointer constant of type 'void *' [-Wnon-literal-null-conversion]
(cherry picked from commit 18038c2ea3b22cad9099719ecc999266b90e8786)

---

Modified: modules/call_control/call_control.c

---

Diff:  https://github.com/kamailio/kamailio/commit/803321f14153fb0ae87f99771c5d03ec6783dddd.diff
Patch: https://github.com/kamailio/kamailio/commit/803321f14153fb0ae87f99771c5d03ec6783dddd.patch

---

diff --git a/modules/call_control/call_control.c b/modules/call_control/call_control.c
index 1bd6fcc..45b9b42 100644
--- a/modules/call_control/call_control.c
+++ b/modules/call_control/call_control.c
@@ -985,7 +985,7 @@ __dialog_ended(struct dlg_cell *dlg, int type, struct dlg_cb_params *_params)
         if( !msg || msg == FAKED_REPLY)
             msg = _params->req;
         call_control_stop(msg, dlg->callid);
-        *_params->param = CCInactive;
+        *_params->param = (void*)CCInactive;
     }
 }
 




More information about the sr-dev mailing list