[asterisk-bugs] [JIRA] (ASTERISK-26509) A few non-critical deprecation warnings when building on Ubuntu 16.10

Joshua Colp (JIRA) noreply at issues.asterisk.org
Fri Nov 18 13:14:15 CST 2016


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

Joshua Colp updated ASTERISK-26509:
-----------------------------------

    Target Release Version/s: 14.2.0

> A few non-critical deprecation warnings when building on Ubuntu 16.10
> ---------------------------------------------------------------------
>
>                 Key: ASTERISK-26509
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26509
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 14.1.0
>         Environment: Ubuntu 16.10 (GNU/Linux 4.8.0-26-generic x86_64)
>            Reporter: Jonathan Harris
>            Assignee: Kevin Harwell
>            Severity: Minor
>      Target Release: 13.13.0, 14.2.0
>
>
> Never noticed these before, but building 14.1.0 on Ubuntu 16.10 today, it threw these warnings:
> {code}
>    [CC] invert.c -> invert.o
> invert.c: In function ‘invert_’:
> invert.c:167:24: warning: array subscript is above array bounds [-Warray-bounds]
>       rc[j] -= rc[k] * v[j + k * 10 - 11];
>                        ~^~~~~~~~~~~~~~~~~
>    [CC] irc2pc.c -> irc2pc.o
>    [CC] stasis_recording/stored.c -> stasis_recording/stored.o
> stasis_recording/stored.c: In function ‘find_recording’:
> stasis_recording/stored.c:175:2: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
>   while (readdir_r(dir, &entry, &result) == 0 && result != NULL) {
>   ^~~~~
> In file included from stasis_recording/stored.c:34:0:
> /usr/include/dirent.h:183:12: note: declared here
>  extern int readdir_r (DIR *__restrict __dirp,
>             ^~~~~~~~~
> stasis_recording/stored.c: In function ‘scan_dir’:
> stasis_recording/stored.c:343:2: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
>   while (readdir_r(dir, &entry, &result) == 0 && result != NULL) {
>   ^~~~~
> In file included from stasis_recording/stored.c:34:0:
> /usr/include/dirent.h:183:12: note: declared here
>  extern int readdir_r (DIR *__restrict __dirp,
>             ^~~~~~~~~
>    [LD] res_stasis_recording.o stasis_recording/stored.o -> res_stasis_recording.so
> {code}
> It still built and seems to run OK, just giving you a heads-up. Thanks!



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



More information about the asterisk-bugs mailing list