make gcc shut up

This commit is contained in:
Lennart Poettering 2008-08-09 17:04:27 +02:00
parent afbfd5d937
commit 72f520f93c
3 changed files with 5 additions and 3 deletions

View file

@ -490,7 +490,7 @@ static void dump_database(struct userdata *u) {
static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connection *c, uint32_t tag, pa_tagstruct *t) { static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connection *c, uint32_t tag, pa_tagstruct *t) {
struct userdata *u; struct userdata *u;
uint32_t command; uint32_t command;
pa_tagstruct *reply; pa_tagstruct *reply = NULL;
pa_assert(p); pa_assert(p);
pa_assert(m); pa_assert(m);

View file

@ -439,7 +439,7 @@ static void setup_complete_callback(pa_pdispatch *pd, uint32_t command, uint32_t
switch(c->state) { switch(c->state) {
case PA_CONTEXT_AUTHORIZING: { case PA_CONTEXT_AUTHORIZING: {
pa_tagstruct *reply; pa_tagstruct *reply;
pa_bool_t shm_on_remote; pa_bool_t shm_on_remote = FALSE;
if (pa_tagstruct_getu32(t, &c->version) < 0 || if (pa_tagstruct_getu32(t, &c->version) < 0 ||
!pa_tagstruct_eof(t)) { !pa_tagstruct_eof(t)) {

View file

@ -1257,7 +1257,9 @@ static pa_usec_t calc_time(pa_stream *s, pa_bool_t ignore_transport) {
usec -= s->timing_info.sink_usec; usec -= s->timing_info.sink_usec;
} }
} else if (s->direction == PA_STREAM_RECORD) { } else {
pa_assert(s->direction == PA_STREAM_RECORD);
/* The last byte written into the server side queue had /* The last byte written into the server side queue had
* this time value associated */ * this time value associated */
usec = pa_bytes_to_usec(s->timing_info.write_index < 0 ? 0 : (uint64_t) s->timing_info.write_index, &s->sample_spec); usec = pa_bytes_to_usec(s->timing_info.write_index < 0 ? 0 : (uint64_t) s->timing_info.write_index, &s->sample_spec);