From: Wolfgang Denk Date: Mon, 19 Oct 2009 10:38:59 +0200 Subject: [U-Boot] [PATCH] envcrc: check return value of fwrite() In-Reply-To: <1255912994-4500-1-git-send-email-vapier@gentoo.org> References: <1255912994-4500-1-git-send-email-vapier@gentoo.org> Message-ID: <20091019083859.B401F182D944A@nyx.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <1255912994-4500-1-git-send-email-vapier@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 > --- > 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