Summary:ASTERISK-18357: chan_dahdi does not compile with --enable-dev-mode and gcc 4.6
Reporter:Matthew Nicholson (mnicholson)Labels:
Date Opened:2011-08-29 09:28:15Date Closed:2011-09-28 15:25:41
Versions:10 Frequency of
Environment:Attachments:( 0) chan_dahdi_warnings_gcc46.patch
Description:With warnings treated as errors, chan_dahdi does not compile with gcc 4.6.

  [CC] chan_dahdi.c -> chan_dahdi.o
chan_dahdi.c: In function 'mkintf':
chan_dahdi.c:12209:6: error: variable 'span' set but not used [-Werror=unused-but-set-variable]
chan_dahdi.c: In function 'dahdi_request':
chan_dahdi.c:13575:6: error: variable 'transcapdigital' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make[1]: *** [chan_dahdi.o] Error 1
Comments:By: Jonathan Rose (jrose) 2011-09-28 14:12:18.455-0500

This is a patch against 1.8, but the warnings were the same, so I'm thinking it'll apply fine to 10 as well.  I'll go ahead and run this by someone else... since I'm not sure how people will feel about adding to the preprocessor gunk.

By: Matthew Nicholson (mnicholson) 2011-09-28 14:20:24.507-0500

I have some comments, post this on reviewboard.