[asterisk-bugs] [JIRA] (ASTERISK-30273) test_mwi: compilation fails on Debian 10

N A (JIRA) noreply at issues.asterisk.org
Sat Oct 22 18:38:08 CDT 2022


N A created ASTERISK-30273:
------------------------------

             Summary: test_mwi: compilation fails on Debian 10
                 Key: ASTERISK-30273
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30273
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Tests/Portability
    Affects Versions: 20.0.0
         Environment: Debian 10
            Reporter: N A
            Severity: Major


Compilation fails:

{noformat}
   [CCi] test_mwi.i -> test_mwi.o
test_mwi.c: In function ‘mailbox_to_num’:
test_mwi.c:73:27: error: passing argument 2 of ‘ast_str_to_umax’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  if (ast_str_to_umax(++p, num)) {
                           ^~~
In file included from test_mwi.c:27:
/usr/src/asterisk-20.0.0/include/asterisk/conversions.h:134:49: note: expected ‘uintmax_t *’ {aka ‘long long unsigned int *’} but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
 int ast_str_to_umax(const char *str, uintmax_t *res);
                                      ~~~~~~~~~~~^~~
   [CCi] test_cdr.i -> test_cdr.o
   [CCi] test_res_prometheus.i -> test_res_prometheus.o
{noformat}



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



More information about the asterisk-bugs mailing list