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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Loeliger Subject: Re: dtc: Check return value from fwrite() Date: Mon, 17 Nov 2008 14:08:41 -0600 Message-ID: References: <20081107004111.GG6692@yookeroo.seuss> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <20081107004111.GG6692-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org To: David Gibson Cc: linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org, devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org > 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