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

Friendly Automation (JIRA) noreply at issues.asterisk.org
Wed Jul 6 16:05:09 CDT 2022


    [ https://issues.asterisk.org/jira/browse/ASTERISK-30117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=259640#comment-259640 ] 

Friendly Automation commented on ASTERISK-30117:
------------------------------------------------

Change 18726 merged by Friendly Automation:
pbx_lua: Remove compiler warnings

[https://gerrit.asterisk.org/c/asterisk/+/18726|https://gerrit.asterisk.org/c/asterisk/+/18726]

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