[U-Boot] [PATCH] envcrc: check return value of fwrite()

Wolfgang Denk wd at denx.de
Mon Oct 19 10:38:59 CEST 2009


Dear Mike Frysinger,

In message <1255912994-4500-1-git-send-email-vapier at gentoo.org> you wrote:
> 
> Newer toolchains will often complain about unchecked fwrite():
> 	envcrc.c:117: warning: ignoring return value of `fwrite´, declared
> 		with attribute warn_unused_result
> 
> So check the return value to silence the warnings.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
>  tools/envcrc.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)

Applied, thanks.

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
"A witty saying proves nothing."                           - Voltaire


More information about the U-Boot mailing list