[asterisk-bugs] [JIRA] (ASTERISK-30234) res_geolocation: ...may be used uninitialized error in geoloc_config.c

Friendly Automation (JIRA) noreply at issues.asterisk.org
Fri Sep 16 14:33:09 CDT 2022


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

Friendly Automation commented on ASTERISK-30234:
------------------------------------------------

Change 19266 merged by Friendly Automation:
res_geolocation: Fix issues exposed by compiling with -O2

[https://gerrit.asterisk.org/c/asterisk/+/19266|https://gerrit.asterisk.org/c/asterisk/+/19266]

> res_geolocation: ...may be used uninitialized error in geoloc_config.c
> ----------------------------------------------------------------------
>
>                 Key: ASTERISK-30234
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30234
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_geolocation
>    Affects Versions: 20.0.0, 19.7.0, 18.15.0, 16.29.0
>            Reporter: George Joseph
>            Assignee: George Joseph
>            Severity: Major
>
> When optimization is on....
> {code}
> res_geolocation/geoloc_config.c: In function 'geoloc_profile_apply_handler':
> res_geolocation/geoloc_config.c:229:26: error: 'format' may be used uninitialized [-Werror=maybe-uninitialized]
>   229 |                 result = validate_location_info(id, format, profile->location_refinement);
>       |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> {code}



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



More information about the asterisk-bugs mailing list