[asterisk-bugs] [JIRA] (ASTERISK-30060) loader: format warnings in dev mode

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Sat May 14 16:28:40 CDT 2022


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

Joshua C. Colp commented on ASTERISK-30060:
-------------------------------------------

It didn't show up on the GCC 12 system, so I don't think it was really missed as a result of that.

Is it also a 64-bit system?

> loader: format warnings in dev mode
> -----------------------------------
>
>                 Key: ASTERISK-30060
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30060
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 18.6.0
>         Environment: Debian 10, Asterisk 18.6.0
>            Reporter: N A
>            Assignee: Unassigned
>
> Unfortunately, I can't reproduce this on the machines I have access to the moment, but I believe the below warnings are originally from Asterisk 18.6.0 on Debian 10, developer mode.
> I can't reproduce this at the moment, but the relevant code still seems to be problematic, so I'm posting this in case it's related to the ongoing gcc fixes that are going on, and this could use some attention itself:
> {noformat}
> loader.c: In function ‘load_modules’:
> loader.c:2524:380: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘int64_t’ {aka ‘long long int’} [-Wformat=]
>   ast_debug(1, "Loader time with AST_XML_DOCS: %ld.%06ld\n", usElapsed / 1000000, usElapsed % 1000000);         
> loader.c:2524:380: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘int64_t’ {aka ‘long long int’} [-Wformat=]
> loader.c: In function ‘load_modules’:
> loader.c:2524:380: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘int64_t’ {aka ‘long long int’} [-Wformat=]
>   ast_debug(1, "Loader time with AST_XML_DOCS: %ld.%06ld\n", usElapsed / 1000000, usElapsed % 1000000);
> loader.c:2524:380: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘int64_t’ {aka ‘long long int’} [-Wformat=]
> {noformat}



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



More information about the asterisk-bugs mailing list