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

Boris P. Korzun (JIRA) noreply at issues.asterisk.org
Fri Jun 24 06:08:49 CDT 2022


Boris P. Korzun created ASTERISK-30117:
------------------------------------------

             Summary: 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: 19.5.0, 18.13.0, 16.27.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