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

George Joseph (JIRA) noreply at issues.asterisk.org
Tue Sep 27 17:10:01 CDT 2016


George Joseph created ASTERISK-26412:
----------------------------------------

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


gcc 6.2 generates more warnings.  need to eventually address.

Here's 1:

{{preformat}}
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)
 ^
{{preformat}}




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



More information about the asterisk-bugs mailing list