[sr-dev] git:master:e3a8e577: core: parser - remove inline for parse_param()
Daniel-Constantin Mierla
miconda at gmail.com
Mon Nov 2 16:21:37 CET 2015
Module: kamailio
Branch: master
Commit: e3a8e5772445d28a0fc6db2e432d750dbb8062da
URL: https://github.com/kamailio/kamailio/commit/e3a8e5772445d28a0fc6db2e432d750dbb8062da
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-11-02T16:21:23+01:00
core: parser - remove inline for parse_param()
- it gets recent compiler warnings when is an extern object
- reported by Victor Seva, GH#286
---
Modified: parser/parse_param.c
Modified: parser/parse_param.h
---
Diff: https://github.com/kamailio/kamailio/commit/e3a8e5772445d28a0fc6db2e432d750dbb8062da.diff
Patch: https://github.com/kamailio/kamailio/commit/e3a8e5772445d28a0fc6db2e432d750dbb8062da.patch
---
diff --git a/parser/parse_param.c b/parser/parse_param.c
index 79e65e9..b9e0fbc 100644
--- a/parser/parse_param.c
+++ b/parser/parse_param.c
@@ -534,7 +534,7 @@ static inline int parse_param2(str *_s, pclass_t _c, param_hooks_t *_h, param_t
* 0: success, but expect a next paramter
* 1: success and exepect no more parameters
*/
-inline int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t)
+int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t)
{
return parse_param2(_s, _c, _h, t, ';');
}
diff --git a/parser/parse_param.h b/parser/parse_param.h
index 98a1bd1..5622df9 100644
--- a/parser/parse_param.h
+++ b/parser/parse_param.h
@@ -143,7 +143,7 @@ typedef union param_hooks {
* 0: success, but expect a next paramter
* 1: success and exepect no more parameters
*/
-extern inline int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t);
+extern int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t);
/*! \brief
More information about the sr-dev
mailing list