From 6078deb51097a240b092f3a0513729bd8e17445b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 5 Jan 2017 07:48:11 +0100 Subject: [PATCH] (PS3) Fix warnings --- tasks/task_image.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tasks/task_image.c b/tasks/task_image.c index 55c5cb1654..96bcd4d23d 100644 --- a/tasks/task_image.c +++ b/tasks/task_image.c @@ -52,7 +52,7 @@ struct nbio_image_handle size_t size; unsigned processing_pos_increment; unsigned pos_increment; - enum image_process_code processing_final_state; + int processing_final_state; enum image_status_enum status; }; @@ -124,8 +124,9 @@ static int task_image_process( static int cb_image_menu_generic(nbio_handle_t *nbio) { - enum image_process_code retval; - unsigned width = 0, height = 0; + int retval = 0; + unsigned width = 0; + unsigned height = 0; struct nbio_image_handle *image = (struct nbio_image_handle*)nbio->data; if (!image) @@ -163,8 +164,10 @@ static int cb_image_menu_thumbnail(void *data, size_t len) static int task_image_iterate_process_transfer(nbio_handle_t *nbio) { - enum image_process_code retval; - unsigned i, width = 0, height = 0; + unsigned i; + int retval = 0; + unsigned width = 0; + unsigned height = 0; struct nbio_image_handle *image = (struct nbio_image_handle*)nbio->data; if (!image)