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

N A (JIRA) noreply at issues.asterisk.org
Sat May 14 16:22:40 CDT 2022


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

N A commented on ASTERISK-30060:
--------------------------------

Unfortunately not. I tested on the other development systems  I use frequently and I couldn't reproduce there, so I think it must be that one; unfortunately, I don't have access to that particular system at the moment and won't for some while again. Looking at the code, I have no reason to believe it would have been resolved between 18.6 and 18.12 if an issue, but some of these gcc warnings do seem highly system dependent so there may have been something else with the environment that caused that to come up.

If this isn't actionable, feel free to close the issue; just didn't want this to get lost since other people may be seeing the same issues, and it does seem like maybe something that could have been missed in the gcc 12 fixes.

> 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: N A
>
> 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