[FFmpeg-devel] patch: remove some warnings mingw

Michael Niedermayer michaelni at gmx.at
Thu Sep 6 04:57:45 CEST 2012


On Wed, Sep 05, 2012 at 04:25:54PM -0600, Roger Pack wrote:
> Dunno if this is the best way to do this, but the patch avoid these
> (somewhat annoying) warnings when cross compiling with mingw-w64:
> 
> CC	libavformat/avio.o
> In file included from libavformat/avio.c:26:0:
> libavformat/os_support.h:40:0: warning: "stat" redefined [enabled by default]
> In file included from libavformat/os_support.h:32:0,
>                  from libavformat/avio.c:26:
> /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.1/../../../../i686-w64-mingw32/include/sys/stat.h:255:0:
> note: this is the location of the previous definition
> In file included from libavformat/avio.c:26:0:
> libavformat/os_support.h:41:0: warning: "fstat" redefined [enabled by default]
> In file included from libavformat/os_support.h:32:0,
>                  from libavformat/avio.c:26:
> /home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.1/../../../../i686-w64-mingw32/include/sys/stat.h:256:0:
> note: this is the location of the previous definition

Iam also not sure its the best way but its an improvment so
applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120906/47bc0f17/attachment.asc>


More information about the ffmpeg-devel mailing list