瀏覽代碼

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 <[email protected]>
James Cloos 8 年之前
父節點
當前提交
42d3b93f83
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/app_perl/kamailioxs.xs

+ 1 - 1
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;