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

Sean Bright (JIRA) noreply at issues.asterisk.org
Tue May 17 09:27:40 CDT 2022


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

Sean Bright reassigned ASTERISK-30060:
--------------------------------------

    Assignee: Sean Bright  (was: Unassigned)

> 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: Sean Bright
>
> 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