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

Jonathan Harris (JIRA) noreply at issues.asterisk.org
Wed Oct 26 16:33:10 CDT 2016


Jonathan Harris created ASTERISK-26509:
------------------------------------------

             Summary: 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
            Severity: Minor


Never noticed these before, but building 14.1.0 on Ubuntu 16.10 today, it threw these warnings:

```

   [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
```

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