[MPlayer-dev-eng] [PATCH] Silence some -Wundef warnings

Diego Biurrun diego at biurrun.de
Mon Jan 21 23:58:23 CET 2013


On Tue, Jan 08, 2013 at 11:39:27AM +0100, Erik Auerswald wrote:
> 
> the attached patch silences some -Wundef warnings by always creating
> the relevant #defines, even when not configuring for Windows:
> 
> libdvdcss/libdvdcss.c:123:5: warning: "HAVE_DIRECT_H" is not defined
> [-Wundef]
> libdvdcss/libdvdcss.c:241:5: warning: "HAVE_DIRECT_H" is not defined
> [-Wundef]
> libavformat/cache.c:36:5: warning: "HAVE_IO_H" is not defined [-Wundef]
> libavformat/file.c:26:5: warning: "HAVE_IO_H" is not defined [-Wundef]
> libavutil/file.c:28:5: warning: "HAVE_IO_H" is not defined [-Wundef]
> libavutil/log.c:32:5: warning: "HAVE_IO_H" is not defined [-Wundef]
> 
> I have tested the patch on GNU/Linux, not on Windows, but it looks
> "obviously correct" to me. ;-)

I only saw this patch now and already fixed the issue differently
earlier today.  Thanks for the patch anyway.

In case you are motivated, there are many -Wundef warnings lurking
still :)

Diego


More information about the MPlayer-dev-eng mailing list