]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/fdsem.c
add a few more gcc warning flags and fix quite a few problems found by doing so
[pulseaudio] / src / pulsecore / fdsem.c
index 1531e3db6399384089aff9c488db5e4f6ef8d7e4..2a7ae5895c67a88a5e7fcd1fcce5518b0220326a 100644 (file)
@@ -195,7 +195,7 @@ static void flush(pa_fdsem *f) {
             continue;
         }
 
-    } while (pa_atomic_sub(&f->data->in_pipe, r) > r);
+    } while (pa_atomic_sub(&f->data->in_pipe, (int) r) > (int) r);
 }
 
 void pa_fdsem_post(pa_fdsem *f) {
@@ -265,7 +265,7 @@ void pa_fdsem_wait(pa_fdsem *f) {
             continue;
         }
 
-        pa_atomic_sub(&f->data->in_pipe, r);
+        pa_atomic_sub(&f->data->in_pipe, (int) r);
     }
 
     pa_assert_se(pa_atomic_dec(&f->data->waiting) >= 1);