[asterisk-bugs] [JIRA] (ASTERISK-26509) A few non-critical deprecation warnings when building on Ubuntu 16.10
Friendly Automation (JIRA)
noreply at issues.asterisk.org
Fri Oct 28 15:27:14 CDT 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=233065#comment-233065 ]
Friendly Automation commented on ASTERISK-26509:
------------------------------------------------
Change 4223 had a related patch set uploaded by Kevin Harwell:
stasis_recording/stored: remove calls to deprecated readdir_r function.
[https://gerrit.asterisk.org/4223|https://gerrit.asterisk.org/4223]
> 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
>
> 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