[asterisk-bugs] [JIRA] (ASTERISK-26412) build: Prepare for gcc 6.2

Friendly Automation (JIRA) noreply at issues.asterisk.org
Fri Jan 27 16:52:10 CST 2017


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

Friendly Automation commented on ASTERISK-26412:
------------------------------------------------

Change 4839 merged by George Joseph:
stasis_recording/stored: remove calls to deprecated readdir_r function.

[https://gerrit.asterisk.org/4839|https://gerrit.asterisk.org/4839]

> build:  Prepare for gcc 6.2
> ---------------------------
>
>                 Key: ASTERISK-26412
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26412
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_dahdi
>            Reporter: George Joseph
>            Assignee: Kevin Harwell
>            Severity: Minor
>      Target Release: 13.13.0, 14.2.0
>
>
> gcc 6.2 generates more warnings.  need to eventually address.
> Here's 1:
> {noformat}
> chan_dahdi.c: In function 'device2chan':
> chan_dahdi.c:11952:2: warning: '__minor_from_sys_types' is deprecated:
>   In the GNU C Library, `minor' is defined by <sys/sysmacros.h>.
>   For historical compatibility, it is currently defined by
>   <sys/types.h> as well, but we plan to remove this soon.
>   To use `minor', include <sys/sysmacros.h> directly.
>   If you did not intend to use a system-defined macro `minor',
>   you should #undef it after including <sys/types.h>.
>   [-Wdeprecated-declarations]
>   num = minor(stbuf.st_rdev);
>   ^~~
> In file included from /usr/include/features.h:397:0,
>                  from /usr/include/inttypes.h:25,
>                  from /home/jsmith/Build/BUILD/asterisk-14.0.1/include/asterisk/compat.h:31,
>                  from /home/jsmith/Build/BUILD/asterisk-14.0.1/include/asterisk.h:27,
>                  from chan_dahdi.c:55:
> /usr/include/sys/sysmacros.h:88:1: note: declared here
>  __SYSMACROS_DEFINE_MINOR (__SYSMACROS_FST_IMPL_TEMPL)
>  ^
> {noformat}



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



More information about the asterisk-bugs mailing list