win32: Make some unused-variable warnings go away

This commit is contained in:
Maarten Bosmans 2011-06-23 22:21:03 +02:00 committed by Colin Guthrie
parent 3adc43b8fe
commit 5818a2c63e
15 changed files with 49 additions and 29 deletions

View file

@ -790,11 +790,10 @@ void pa_command_stream_event(pa_pdispatch *pd, uint32_t command, uint32_t tag, p
goto finish;
if (pa_streq(event, PA_STREAM_EVENT_FORMAT_LOST)) {
/* Let client know what the running time was when the stream had to be
* killed */
pa_usec_t time;
if (pa_stream_get_time(s, &time) == 0)
pa_proplist_setf(pl, "stream-time", "%llu", (unsigned long long) time);
/* Let client know what the running time was when the stream had to be killed */
pa_usec_t stream_time;
if (pa_stream_get_time(s, &stream_time) == 0)
pa_proplist_setf(pl, "stream-time", "%llu", (unsigned long long) stream_time);
}
if (s->event_callback)

View file

@ -49,6 +49,7 @@ struct timeval *pa_gettimeofday(struct timeval *tv) {
#else
#define EPOCHFILETIME (116444736000000000LL)
#endif
{
FILETIME ft;
LARGE_INTEGER li;
int64_t t;
@ -61,6 +62,7 @@ struct timeval *pa_gettimeofday(struct timeval *tv) {
t /= 10; /* In microseconds */
tv->tv_sec = (time_t) (t / PA_USEC_PER_SEC);
tv->tv_usec = (suseconds_t) (t % PA_USEC_PER_SEC);
}
#elif defined(HAVE_GETTIMEOFDAY)
pa_assert_se(gettimeofday(tv, NULL) == 0);
#else

View file

@ -131,9 +131,9 @@ char *pa_get_host_name(char *s, size_t l) {
}
char *pa_get_home_dir(char *s, size_t l) {
char *e, *dir;
char *e;
#ifdef HAVE_PWD_H
char *dir;
struct passwd *r;
#endif