From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: David Gibson Subject: Re: dtc: Check return value from fwrite() In-reply-to: <20081107004111.GG6692@yookeroo.seuss> References: <20081107004111.GG6692@yookeroo.seuss> Date: Mon, 17 Nov 2008 14:08:41 -0600 From: Jon Loeliger Message-Id: Cc: linuxppc-dev@ozlabs.org, devicetree-discuss@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > There's one place in flattree.c where we currently ignore the return > value from fwrite(). On some gcc/glibc versions, where fwrite() is > declared with attribute warn_unused_result, this causes a warning. > > This patch fixes the warning, by checking the fwrite() result. > > Signed-off-by: David Gibson Applied. Thanks, jdl