[asterisk-bugs] [JIRA] (ASTERISK-30117) pbx_lua: Remove compiler warnings

Asterisk Team (JIRA) noreply at issues.asterisk.org
Thu Jul 28 11:15:10 CDT 2022


     [ https://issues.asterisk.org/jira/browse/ASTERISK-30117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-30117:
-------------------------------------

    Target Release Version/s: 18.14.0

> pbx_lua: Remove compiler warnings
> ---------------------------------
>
>                 Key: ASTERISK-30117
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30117
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: PBX/pbx_lua
>    Affects Versions: 16.27.0, 18.13.0, 19.5.0
>         Environment: FreeBSD 13/stable
>            Reporter: Boris P. Korzun
>            Assignee: Boris P. Korzun
>      Target Release: 16.28.0, 18.14.0
>
>
> There're warnings while building pbx_lua.c:
> {noformat}
> pbx_lua.c:1138:42: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare]
>         if (fread(data, sizeof(char), *size, f) != *size) {
>             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~
> pbx_lua.c:1538:16: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
>         for (i = 1; i < lua_rawlen(L, context_order_table) + 1; i++) {
>                     ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 2 warnings generated.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list