cleanup: Silence compilation warnings on MinGW-w64
commit24be34f1e9e37111a06108c090324426aff6f1db
authorwm4 <wm4@mplayer2.org>
Mon, 27 Feb 2012 18:15:13 +0000 (27 19:15 +0100)
committerUoti Urpala <uau@mplayer2.org>
Wed, 29 Feb 2012 22:22:30 +0000 (1 00:22 +0200)
treeaa28674a6d69dfb18fd102608f72e3081df6d1dd
parent25417a626d0b9077bfbb940952f3858d7b8b549b
cleanup: Silence compilation warnings on MinGW-w64

Some of the code, especially the dshow and windows codec loader parts,
are extremely hacky and likely full of bugs. The goal is merely getting
rid of warnings that could obscure more important warnings and actual
bugs, instead of fixing actual problems. This reduces the number of
warnings from over 500 to almost the same as when compiling on Linux.

Note that many problems stem from using the ancient wine-derived
windows headers. There are some differences to the "proper" windows
header. Changing the code to compile with the proper headers would be
too much trouble, and it still has to work on Unix.

Some of the changes might actually break compilation on legacy MinGW,
but we don't support that anymore. Always use MinGW-w64, even when
compiling to 32 bit.

Fixes some warnings in the win32 loader code on Linux too.
28 files changed:
command.c
libao2/ao_dsound.c
libmpcodecs/ad_qtaudio.c
libmpcodecs/ad_twin.c
libmpcodecs/vd_qtvideo.c
libmpcodecs/vd_vfw.c
libmpdemux/aviheader.h
libvo/vo_directx.c
libvo/w32_common.c
loader/afl.c
loader/dmo/DMO_VideoDecoder.c
loader/dshow/DS_Filter.c
loader/dshow/DS_VideoDecoder.c
loader/dshow/allocator.c
loader/dshow/graph.c
loader/dshow/graph.h
loader/dshow/outputpin.c
loader/ext.c
loader/module.c
loader/pe_image.c
loader/registry.c
loader/win32.c
loader/wine/winbase.h
loader/wine/windef.h
osdep/getch2-win.c
osdep/setenv.c
stream/cache2.c
sub/vobsub.c