[FFmpeg-devel] Update on lbos

Rich Felker dalias
Thu Feb 7 17:54:13 CET 2008

On Thu, Feb 07, 2008 at 09:34:50AM +0100, Lucabe72 wrote:
> Hi Dave,
> [...]
> > gcc -Ii:/usr/src/libbrokenos/include -Zomf -fomit-frame-pointer -g -Wall 
> > -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls 
> > -Wcast-qual -Wwrite-strings -O3 -I"/usr/src/ffmpeg" -I"/usr/src/ffmpeg" 
> > -I"/usr/src/ffmpeg"/libavutil -I"/usr/src/ffmpeg"/libavcodec 
> > -I"/usr/src/ffmpeg"/libavformat -I"/usr/src/ffmpeg"/libswscale 
> > -I"/usr/src/ffmpeg"/libavdevice -D_FILE_OFFSET_BITS=64 
> > ffserver.c
> > In file included from i:/usr/src/libbrokenos/include/unistd.h:1,
> >                   from ffserver.c:31:
> > i:/usr/src/libbrokenos/include/unistd_orig.h:338: warning: redundant 
> > redeclaration of `_exit' in same scope
> > i:/usr/include/stdlib.h:431: warning: previous declaration of `_exit'
> Ok, thanks; these are the information I needed.
> It looks like _exit() is defined both in unistd.h and
> stdlib.h?

This is incorrect; it should only be in unistd.h.

> I am wondering why you do not see this kind of warnings
> when compiling programs that include both stdlib.h and
> unistd.h...

It is normal to have 2 or more prototypes for the same function as
long as they do not conflict with one another. I have never heard of a
warning for such a thing. Who put -Wredundant-decls in the default
warnings?? This is sure to get all kinds of bogus warnings from
system headers!!


More information about the ffmpeg-devel mailing list