[Ffmpeg-devel] About gcc and __attribute__((unused))

Diego Biurrun diego
Sat Jan 6 15:55:53 CET 2007


On Thu, Jan 04, 2007 at 11:49:35AM +0100, Fran?ois Revol wrote:
> >
> > I see that __attribute__((unused)) is currently only used with gcc >=
> > 3.0. Is it known to give problems with gcc 2.95?
> >
> > I have a gcc 2.95 (on Debian stable) here, and
> > __attribute__((unused))
> > seems to work fine... So, I am wondering if __attribute__((unused))
> > is
> > disabled with gcc 2.95 on purpose, or if the attached patch can be
> > applied.
> 
> Maybe it was introduced in only the last versions of 2.95, in which
> case it could cause problems on older versions.

http://gcc.gnu.org/ml/gcc-bugs/1999-06n/msg00362.html

from 14 Jun 1999 talks about __attribute__((unused)), gcc 2.95 was
released on July 31, 1999.

So go ahead and commit, it's always good to see an ifdef go or get
simplified.

Diego




More information about the ffmpeg-devel mailing list