[MPlayer-dev-eng] [PATCH] Fix a bunch of fresh -Wundef warnings...

Alexander Strasser eclipse7 at gmx.net
Mon Oct 29 22:20:22 CET 2012


Erik Auerswald wrote:
> On 10/28/2012 10:00 PM, Alexander Strasser wrote:
[...]
> >
> >   Committed.
> 
> Thanks.
> 
> I still get the following -Wundef warnings:
> 
> 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]
> libavformat/udp.c:230:5: warning: "HAVE_STRUCT_GROUP_SOURCE_REQ" is
> not defined [-Wundef]
> libavformat/udp.c:258:7: warning: "HAVE_STRUCT_IP_MREQ_SOURCE" is
> not defined [-Wundef]
> libavcodec/pthread.c:34:5: warning: "HAVE_SCHED_GETAFFINITY" is not
> defined [-Wundef]
> libavcodec/pthread.c:38:5: warning: "HAVE_GETPROCESSAFFINITYMASK" is
> not defined [-Wundef]
> libavcodec/pthread.c:41:5: warning: "HAVE_SYSCTL" is not defined [-Wundef]
> libavcodec/pthread.c:49:5: warning: "HAVE_SYSCONF" is not defined [-Wundef]
> libavcodec/pthread.c:168:5: warning: "HAVE_SCHED_GETAFFINITY" is not
> defined [-Wundef]
> libavcodec/pthread.c:177:7: warning: "HAVE_GETPROCESSAFFINITYMASK"
> is not defined [-Wundef]
> libavcodec/pthread.c:182:7: warning: "HAVE_SYSCTL" is not defined [-Wundef]
> libavcodec/pthread.c:189:7: warning: "HAVE_SYSCONF" is not defined [-Wundef]
> libavcodec/pthread.c:191:7: warning: "HAVE_SYSCONF" is not defined [-Wundef]
> libswscale/utils.c:1095:5: warning: "HAVE_MPROTECT" is not defined [-Wundef]
> libswscale/utils.c:1126:5: warning: "HAVE_MPROTECT" is not defined [-Wundef]
> libswscale/utils.c:1723:5: warning: "HAVE_MPROTECT" is not defined [-Wundef]
> libavutil/mem.c:99:7: warning: "HAVE_ALIGNED_MALLOC" is not defined
> [-Wundef]
> libavutil/mem.c:160:7: warning: "HAVE_ALIGNED_MALLOC" is not defined
> [-Wundef]
> libavutil/mem.c:187:7: warning: "HAVE_ALIGNED_MALLOC" is not defined
> [-Wundef]
> libavutil/random_seed.c:26:5: warning: "HAVE_CRYPTGENRANDOM" is not
> defined [-Wundef]
> libavutil/random_seed.c:109:5: warning: "HAVE_CRYPTGENRANDOM" is not
> defined [-Wundef]
> libavutil/time.c:32:5: warning: "HAVE_WINDOWS_H" is not defined [-Wundef]
> libavutil/time.c:45:7: warning: "HAVE_GETSYSTEMTIMEASFILETIME" is
> not defined [-Wundef]
> libavutil/time.c:62:7: warning: "HAVE_USLEEP" is not defined [-Wundef]
> libavutil/time.c:64:7: warning: "HAVE_SLEEP" is not defined [-Wundef]

  Thanks for posting a list -- I spotted some of those too while testing
your patch.

[...]

> I don't know when (or if) I'll find the time to work on this.

  Patches are welcome.

  Though in the long run we should try to re-use the FFmpeg build system
from inside MPlayer sources. This was attempted before but AFAIK failed
because of reasons I do not know. I have to read up on that to be helpful
for new attempts. So no more pointers from me at this moment.

  But if you want to give it a try, you have my support for sure!


  Alexander


More information about the MPlayer-dev-eng mailing list