mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
win32: Make some unused-variable warnings go away
This commit is contained in:
parent
3adc43b8fe
commit
5818a2c63e
15 changed files with 49 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue