[sr-dev] git:5.0:074f52de: app_perl: Make sv2int_str() static
Daniel-Constantin Mierla
miconda at gmail.com
Tue Mar 14 20:11:45 CET 2017
Module: kamailio
Branch: 5.0
Commit: 074f52de88f473945628f81740a87e5f6bc072ea
URL: https://github.com/kamailio/kamailio/commit/074f52de88f473945628f81740a87e5f6bc072ea
Author: James Cloos <cloos at jhcloos.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-03-14T20:11:29+01:00
app_perl: Make sv2int_str() static
- The function is only called from the xs file, and C11âs inline
semantics mean that gcc-5 and later miscompile this file when
no optimization is specified.
Signed-off-by: James Cloos <cloos at jhcloos.com>
(cherry picked from commit 42d3b93f838d1c2eeb009894422fe016a6572520)
---
Modified: src/modules/app_perl/kamailioxs.xs
---
Diff: https://github.com/kamailio/kamailio/commit/074f52de88f473945628f81740a87e5f6bc072ea.diff
Patch: https://github.com/kamailio/kamailio/commit/074f52de88f473945628f81740a87e5f6bc072ea.patch
---
diff --git a/src/modules/app_perl/kamailioxs.xs b/src/modules/app_perl/kamailioxs.xs
index 02fb5a5..8d2604c 100644
--- a/src/modules/app_perl/kamailioxs.xs
+++ b/src/modules/app_perl/kamailioxs.xs
@@ -402,7 +402,7 @@ char *pv_sprintf(struct sip_msg *m, char *fmt) {
* - strflag: flag mask to be or-applied for string match
*/
-inline int sv2int_str(SV *val, int_str *is,
+static inline int sv2int_str(SV *val, int_str *is,
unsigned short *flags, unsigned short strflag) {
char *s;
STRLEN len;
More information about the sr-dev
mailing list