mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1033192 - Fix gcc and MSVC warnings in media/libcubeb/. r=padenot
This commit is contained in:
parent
01fc5ee208
commit
aad0aaea7a
@ -49,7 +49,7 @@ struct cubeb_stream {
|
||||
SLObjectItf playerObj;
|
||||
SLPlayItf play;
|
||||
SLBufferQueueItf bufq;
|
||||
void *queuebuf[NBUFS];
|
||||
uint8_t *queuebuf[NBUFS];
|
||||
int queuebuf_idx;
|
||||
long queuebuf_len;
|
||||
long bytespersec;
|
||||
@ -102,7 +102,7 @@ bufferqueue_callback(SLBufferQueueItf caller, void * user_ptr)
|
||||
|
||||
SLuint32 i;
|
||||
for (i = state.count; i < NBUFS; i++) {
|
||||
void *buf = stm->queuebuf[stm->queuebuf_idx];
|
||||
uint8_t *buf = stm->queuebuf[stm->queuebuf_idx];
|
||||
long written = 0;
|
||||
pthread_mutex_lock(&stm->mutex);
|
||||
int draining = stm->draining;
|
||||
|
@ -6,8 +6,11 @@
|
||||
*/
|
||||
#undef NDEBUG
|
||||
#define __MSVCRT_VERSION__ 0x0700
|
||||
#undef WINVER
|
||||
#define WINVER 0x0501
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
#include <malloc.h>
|
||||
#include <assert.h>
|
||||
#include <windows.h>
|
||||
|
@ -70,3 +70,5 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
||||
'system/media/wilhelm/include',
|
||||
]
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
Loading…
Reference in New Issue
Block a user