Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755462AbZLIMsU (ORCPT ); Wed, 9 Dec 2009 07:48:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755407AbZLIMsT (ORCPT ); Wed, 9 Dec 2009 07:48:19 -0500 Received: from cantor2.suse.de ([195.135.220.15]:54944 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753687AbZLIMsS (ORCPT ); Wed, 9 Dec 2009 07:48:18 -0500 Message-ID: <4B1F9C5D.6000902@suse.cz> Date: Wed, 09 Dec 2009 13:47:25 +0100 From: Michal Marek User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090915 SUSE/3.0b4-5.9 Thunderbird/3.0b4 MIME-Version: 1.0 To: Mike Frysinger Cc: linux-kbuild@vger.kernel.org, Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] gen_init_cpio: fixed fwrite warning References: <1260359719-15744-1-git-send-email-vapier@gentoo.org> In-Reply-To: <1260359719-15744-1-git-send-email-vapier@gentoo.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 707 Lines: 19 On 9.12.2009 12:55, Mike Frysinger wrote: > On compilers with security warnings enabled by default, we get: > > usr/gen_init_cpio.c: In function ‘cpio_mkfile’: > usr/gen_init_cpio.c:357: warning: ignoring return value of ‘fwrite’, > declared with attribute warn_unused_result > > So check the return value and handle errors accordingly. > > Signed-off-by: Mike Frysinger Applied, thanks. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/