Silence more warnings

This commit is contained in:
Twinaphex 2018-04-13 00:52:52 +02:00
parent 041670fe02
commit bd2b913bc6
3 changed files with 4 additions and 4 deletions

View File

@ -145,7 +145,7 @@ getDevicesFromMiniSSDPD(const char * devtype, const char * socketpath, int * err
if(n<=0) break; \
bufferindex = 0; \
} \
lcopy = MIN(l, (n - bufferindex)); \
lcopy = (unsigned int)MIN(l, (n - bufferindex)); \
memcpy(p, buffer + bufferindex, lcopy); \
l -= lcopy; \
p += lcopy; \

View File

@ -493,8 +493,8 @@ static void gl_glsl_strip_parameter_pragmas(char *source)
static bool gl_glsl_load_source_path(struct video_shader_pass *pass,
const char *path)
{
int64_t len;
int nitems = pass ? filestream_read_file(path,
int64_t len = 0;
int64_t nitems = pass ? filestream_read_file(path,
(void**)&pass->source.string.vertex, &len) : 0;
if (nitems <= 0 || len <= 0)

View File

@ -48,7 +48,7 @@ typedef struct intfstream_info
struct
{
uint8_t *data;
unsigned size;
uint64_t size;
} buf;
bool writable;
} memory;