path: root/stream
diff options
authorwm4 <>2012-02-27 19:15:13 +0100
committerUoti Urpala <>2012-03-01 00:22:30 +0200
commit24be34f1e9e37111a06108c090324426aff6f1db (patch)
treeaa28674a6d69dfb18fd102608f72e3081df6d1dd /stream
parent25417a626d0b9077bfbb940952f3858d7b8b549b (diff)
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.
Diffstat (limited to 'stream')
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/cache2.c b/stream/cache2.c
index 6e8f398c37..4aed786cb6 100644
--- a/stream/cache2.c
+++ b/stream/cache2.c
@@ -367,6 +367,7 @@ void cache_uninit(stream_t *s) {
s->cache_data = NULL;
static void exit_sighandler(int x){
// close stream
@@ -374,6 +375,7 @@ static void exit_sighandler(int x){
static void dummy_sighandler(int x) {
* Main loop of the cache process or thread.