mirror of
https://github.com/libretro/RetroArch
synced 2025-03-14 10:21:46 +00:00
fix a couple minor warnings (#17526)
This commit is contained in:
parent
bb9f07569c
commit
4c8da979a5
@ -700,13 +700,13 @@ static int16_t cocoa_input_state(
|
||||
case RETRO_DEVICE_ID_LIGHTGUN_PAUSE:
|
||||
{
|
||||
unsigned new_id = input_driver_lightgun_id_convert(id);
|
||||
const uint64_t bind_joykey = input_config_binds[port][new_id].joykey;
|
||||
const uint64_t bind_joyaxis = input_config_binds[port][new_id].joyaxis;
|
||||
const uint64_t autobind_joykey = input_autoconf_binds[port][new_id].joykey;
|
||||
const uint64_t autobind_joyaxis= input_autoconf_binds[port][new_id].joyaxis;
|
||||
const uint32_t bind_joykey = input_config_binds[port][new_id].joykey;
|
||||
const uint32_t bind_joyaxis = input_config_binds[port][new_id].joyaxis;
|
||||
const uint32_t autobind_joykey = input_autoconf_binds[port][new_id].joykey;
|
||||
const uint32_t autobind_joyaxis= input_autoconf_binds[port][new_id].joyaxis;
|
||||
uint16_t joyport = joypad_info->joy_idx;
|
||||
float axis_threshold = joypad_info->axis_threshold;
|
||||
const uint64_t joykey = (bind_joykey != NO_BTN) ? bind_joykey : autobind_joykey;
|
||||
const uint32_t joykey = (bind_joykey != NO_BTN) ? bind_joykey : autobind_joykey;
|
||||
const uint32_t joyaxis = (bind_joyaxis != AXIS_NONE) ? bind_joyaxis : autobind_joyaxis;
|
||||
|
||||
if (binds[port][new_id].valid)
|
||||
|
@ -4020,7 +4020,6 @@ static void materialui_render_menu_entry_default(
|
||||
bool draw_text_outside = (x_offset != 0);
|
||||
gfx_display_t *p_disp = disp_get_ptr();
|
||||
uico_driver_state_t *uico_st = uico_state_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
static float color_white[16] = {
|
||||
1.0f, 1.0f, 1.0f, 1.0f,
|
||||
|
@ -1897,7 +1897,6 @@
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
@ -1920,6 +1919,7 @@
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
||||
@ -1957,7 +1957,6 @@
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
@ -1979,6 +1978,7 @@
|
||||
GCC_FAST_MATH = YES;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = fast;
|
||||
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
||||
|
@ -60,7 +60,9 @@ typedef enum apple_view_type
|
||||
* the displays should not sleep.
|
||||
*/
|
||||
- (bool)setDisableDisplaySleep:(bool)disable;
|
||||
#if !defined(HAVE_COCOATOUCH)
|
||||
- (void)openDocument:(id)sender;
|
||||
#endif
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user