[sr-dev] git:master:18038c2e: modules/call_control: fixes clang compile warning
Mikko Lehto
mslehto at iki.fi
Wed Jun 3 14:53:21 CEST 2015
Module: kamailio
Branch: master
Commit: 18038c2ea3b22cad9099719ecc999266b90e8786
URL: https://github.com/kamailio/kamailio/commit/18038c2ea3b22cad9099719ecc999266b90e8786
Author: Mikko Lehto <mslehto at iki.fi>
Committer: Mikko Lehto <mslehto at iki.fi>
Date: 2015-06-03T15:44:52+03: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]
---
Modified: modules/call_control/call_control.c
---
Diff: https://github.com/kamailio/kamailio/commit/18038c2ea3b22cad9099719ecc999266b90e8786.diff
Patch: https://github.com/kamailio/kamailio/commit/18038c2ea3b22cad9099719ecc999266b90e8786.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