From f5566cbe3bc02152d5dcd08f0a3323a5ab2ff4ae Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 16 Jul 2015 10:11:28 +0200 Subject: [PATCH] Cleanup warnings --- input/drivers/android_input.c | 3 ++- menu/drivers/glui.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/input/drivers/android_input.c b/input/drivers/android_input.c index b206c67c9a..6dcac0c4ef 100644 --- a/input/drivers/android_input.c +++ b/input/drivers/android_input.c @@ -638,7 +638,8 @@ static void handle_hotplug(android_input_t *android, *port = 0; strlcpy(name_buf, device_name, sizeof(name_buf)); } - else if (strstr(device_name, "Virtual") || strstr(device_name, "gpio") && strstr(android->pad_states[0].name,"NVIDIA Corporation NVIDIA Controller v01.01")) + else if (strstr(device_name, "Virtual") || + (strstr(device_name, "gpio") && strstr(android->pad_states[0].name,"NVIDIA Corporation NVIDIA Controller v01.01"))) { /* If built-in shield controller is detected bind the virtual and gpio devices to the same port*/ *port = 0; diff --git a/menu/drivers/glui.c b/menu/drivers/glui.c index cb4fc425de..ba508323e5 100644 --- a/menu/drivers/glui.c +++ b/menu/drivers/glui.c @@ -532,7 +532,7 @@ static void glui_font(menu_handle_t *menu) static void glui_layout(menu_handle_t *menu, glui_handle_t *glui) { menu_display_t *disp = menu_display_get_ptr(); - float scale_factor, glyph_width; + float scale_factor; unsigned width, height; video_driver_get_size(&width, &height);