Module: kamailio Branch: master Commit: e6654da5fe8c828945d53cc86f23c8d70b58bb99 URL: https://github.com/kamailio/kamailio/commit/e6654da5fe8c828945d53cc86f23c8d70b58bb99
Author: Victor Seva <linuxman...@torreviejawireless.org> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2017-01-16T11:18:01+01:00 ims_registrar_scscf: fix compiler warnings > registrar_notify.c:1528:43: warning: 'param_3gpp_icsi_ref' is static but used > in inline function 'supported_param' which is not static > } else if (strncasecmp(param_name->s, param_3gpp_icsi_ref.s, > param_name->len) == 0) { > ^~~~~~~~~~~~~~~~~~~ > registrar_notify.c:1526:43: warning: 'param_3gpp_smsip' is static but used in > inline function 'supported_param' which is not static > } else if (strncasecmp(param_name->s, param_3gpp_smsip.s, > param_name->len) == 0) { > ^~~~~~~~~~~~~~~~ > registrar_notify.c:1524:43: warning: 'param_sip_instance' is static but used > in inline function 'supported_param' which is not static > } else if (strncasecmp(param_name->s, param_sip_instance.s, > param_name->len) == 0) { > ^~~~~~~~~~~~~~~~~~ > registrar_notify.c:1522:43: warning: 'param_expires' is static but used in > inline function 'supported_param' which is not static > } else if (strncasecmp(param_name->s, param_expires.s, param_name->len) > == 0) { > ^~~~~~~~~~~~~ > registrar_notify.c:1520:43: warning: 'param_video' is static but used in > inline function 'supported_param' which is not static > } else if (strncasecmp(param_name->s, param_video.s, param_name->len) == > 0) { > ^~~~~~~~~~~ > registrar_notify.c:1518:36: warning: 'param_q' is static but used in inline > function 'supported_param' which is not static > if (strncasecmp(param_name->s, param_q.s, param_name->len) == 0) { > ^~~~~~~ --- Modified: src/modules/ims_registrar_scscf/registrar_notify.c --- Diff: https://github.com/kamailio/kamailio/commit/e6654da5fe8c828945d53cc86f23c8d70b58bb99.diff Patch: https://github.com/kamailio/kamailio/commit/e6654da5fe8c828945d53cc86f23c8d70b58bb99.patch --- diff --git a/src/modules/ims_registrar_scscf/registrar_notify.c b/src/modules/ims_registrar_scscf/registrar_notify.c index 61e1430..fb95bb9 100644 --- a/src/modules/ims_registrar_scscf/registrar_notify.c +++ b/src/modules/ims_registrar_scscf/registrar_notify.c @@ -1513,7 +1513,7 @@ static str param_sip_instance = {"+sip.instance", 13}; static str param_3gpp_smsip = {"+g.3gpp.smsip", 13}; static str param_3gpp_icsi_ref = {"+g.3gpp.icsi-ref", 16}; -int inline supported_param(str *param_name) { +static int inline supported_param(str *param_name) { if (strncasecmp(param_name->s, param_q.s, param_name->len) == 0) { return 0; _______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev