[FFmpeg-cvslog] r16746 - trunk/libavcodec/rectangle.h

Diego Biurrun diego
Sat Jan 24 17:54:41 CET 2009


On Sat, Jan 24, 2009 at 03:30:36PM +0000, M?ns Rullg?rd wrote:
> Diego Biurrun <diego at biurrun.de> writes:
> 
> > On Sat, Jan 24, 2009 at 02:51:22PM +0000, M?ns Rullg?rd wrote:
> >> diego <subversion at mplayerhq.hu> writes:
> >> 
> >> > Log:
> >> > Add required headers to fix 'make checkheaders'.
> >> >
> >> > --- trunk/libavcodec/rectangle.h	Sat Jan 24 15:32:22 2009	(r16745)
> >> > +++ trunk/libavcodec/rectangle.h	Sat Jan 24 15:46:00 2009	(r16746)
> >> > @@ -28,7 +28,10 @@
> >> >  #ifndef AVCODEC_RECTANGLE_H
> >> >  #define AVCODEC_RECTANGLE_H
> >> >
> >> > +#include <assert.h>
> >> 
> >> Be careful with adding assert.h.  You just enabled assert() checking
> >> unconditionally in that file and anything that includes it.  Before
> >> this commit, assert.h was included through internal.h, which sets
> >> NDEBUG before including it.
> >
> > What is the proper solution then?  Adding #define NDEBUG or #including
> > internal.h instead?
> 
> I don't know.  Michael refused to talk about it last time I brought it
> up.

I will use internal.h for now.

Some statistics regarding the overall use of assert.h:

we have 67 files that #include assert.h, 7 of which have the #include
commented-out.  Of those 60 files, 39 contain '#undef NDEBUG'.

Diego




More information about the ffmpeg-cvslog mailing list