Silence more warnings

This commit is contained in:
Twinaphex 2018-06-21 07:34:27 +02:00
parent 467aa30131
commit 2bdffff435
4 changed files with 13 additions and 14 deletions

View File

@ -306,8 +306,8 @@ static void frontend_darwin_get_os(char *s, size_t len, int *major, int *minor)
NSInteger patchVersion;
} NSMyOSVersion;
NSMyOSVersion version = ((NSMyOSVersion(*)(id, SEL))objc_msgSend_stret)([NSProcessInfo processInfo], @selector(operatingSystemVersion));
*major = version.majorVersion;
*minor = version.minorVersion;
*major = (int)version.majorVersion;
*minor = (int)version.minorVersion;
}
else
{

View File

@ -482,8 +482,8 @@ bool slang_process(
CompilerGLSL* vs = (CompilerGLSL*)vs_compiler;
CompilerGLSL* ps = (CompilerGLSL*)ps_compiler;
options.version = version;
ps->set_options(options);
vs->set_options(options);
ps->set_common_options(options);
vs->set_common_options(options);
vs_code = vs->compile();
ps_code = ps->compile();

View File

@ -133,7 +133,6 @@ bool midi_driver_set_volume(unsigned volume)
{
midi_event_t event;
uint8_t data[8] = { 0xF0, 0x7F, 0x7F, 0x04, 0x01, 0, 0, 0xF7 };
const char *err_str = NULL;
if (!midi_drv_data || !midi_drv_output_enabled)
return false;
@ -464,7 +463,7 @@ bool midi_driver_write(uint8_t byte, uint32_t delta_time)
midi_drv_output_event.data[0] == 0xF0)
{
if (byte == 0xF7)
event_size = midi_drv_output_event.data_size + 1;
event_size = (int)midi_drv_output_event.data_size + 1;
else
{
if (!midi_drv->write(midi_drv_data, &midi_drv_output_event))
@ -489,17 +488,17 @@ bool midi_driver_write(uint8_t byte, uint32_t delta_time)
midi_drv_output_event.data_size);
#endif
midi_drv_output_pending = true;
event_size = midi_driver_get_event_size(byte);
midi_drv_output_event.data_size = 0;
midi_drv_output_pending = true;
event_size = (int)midi_driver_get_event_size(byte);
midi_drv_output_event.data_size = 0;
midi_drv_output_event.delta_time = 0;
}
}
else
{
event_size = midi_driver_get_event_size(byte);
midi_drv_output_event.data_size = 0;
midi_drv_output_event.delta_time = 0;
event_size = (int)midi_driver_get_event_size(byte);
midi_drv_output_event.data_size = 0;
midi_drv_output_event.delta_time = 0;
}
}

View File

@ -357,7 +357,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
MACOSX_DEPLOYMENT_TARGET = 10.13;
ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
SDKROOT = macosx;
@ -395,7 +395,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
MACOSX_DEPLOYMENT_TARGET = 10.13;
PREBINDING = NO;
SDKROOT = macosx;
};