[U-Boot] [PATCH] jffs2, suen3: Fix compiler warning

Wolfgang Denk wd at denx.de
Wed Mar 24 13:04:07 CET 2010


Dear Heiko Schocher,

In message <4BA9AD21.6020601 at denx.de> you wrote:
> 
> $ ./MAKEALL suen3
> jffs2_1pass.c: In function 'get_fl_mem':
> jffs2_1pass.c:399: warning: unused variable 'id'
> jffs2_1pass.c: In function 'get_node_mem':
> jffs2_1pass.c:423: warning: unused variable 'id'
> 
> Signed-off-by: Heiko Schocher <hs at denx.de>
> ---
>  fs/jffs2/jffs2_1pass.c |   37 ++++++++++++++++++++++---------------
>  1 files changed, 22 insertions(+), 15 deletions(-)


NAK.


> +	default:
> +		printf("get_fl_mem: unknown device type, \
> +			using raw offset!\n");
> +	}

This will not give the intended output.  Please fix.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Security is mostly a superstition. It does not  exist  in  nature...
Life is either a daring adventure or nothing."         - Helen Keller


More information about the U-Boot mailing list