Cleanup warnings

This commit is contained in:
twinaphex 2015-07-16 10:11:28 +02:00
parent a73f91e68a
commit f5566cbe3b
2 changed files with 3 additions and 2 deletions

View File

@ -638,7 +638,8 @@ static void handle_hotplug(android_input_t *android,
*port = 0; *port = 0;
strlcpy(name_buf, device_name, sizeof(name_buf)); 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*/ /* If built-in shield controller is detected bind the virtual and gpio devices to the same port*/
*port = 0; *port = 0;

View File

@ -532,7 +532,7 @@ static void glui_font(menu_handle_t *menu)
static void glui_layout(menu_handle_t *menu, glui_handle_t *glui) static void glui_layout(menu_handle_t *menu, glui_handle_t *glui)
{ {
menu_display_t *disp = menu_display_get_ptr(); menu_display_t *disp = menu_display_get_ptr();
float scale_factor, glyph_width; float scale_factor;
unsigned width, height; unsigned width, height;
video_driver_get_size(&width, &height); video_driver_get_size(&width, &height);