From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6299 invoked by alias); 29 May 2017 14:27:35 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 6287 invoked by uid 89); 29 May 2017 14:27:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=considering X-HELO: mx1.suse.de Date: Mon, 29 May 2017 14:27:00 -0000 From: Cyril Hrubis To: Steve Ellcey Cc: Florian Weimer , libc-alpha Subject: Re: Testing build failure with latest GCC Message-ID: <20170529142617.GB6618@rei.lan> References: <1495731053.18342.13.camel@cavium.com> <1495731917.18342.17.camel@cavium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1495731917.18342.17.camel@cavium.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2017-05/txt/msg00834.txt.bz2 Hi! > > The f* stream functions are special. You can check for errors using > > the return value, or using ferror. Therefore, the attribute might not > > be correct. > > > > Considering how difficult is to bypass warn-used attribute (a cast to > > void is not enough), I wonder if we should drop the attribute. > > That is a good point, I thought a '(void)' cast could fix this but I > see that it does not. FYI that's bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 -- Cyril Hrubis chrubis@suse.cz