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

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Fri Jun 24 06:12:49 CDT 2022


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

Joshua C. Colp updated ASTERISK-30117:
--------------------------------------

    Status: Open  (was: Triage)

> 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
>
> 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