From: Kyle McMartin Subject: Re: [parisc-linux] Re: (void) cast for READ_REG Date: Thu, 11 May 2006 13:26:53 -0400 Message-ID: <20060511172653.GA26547@skunkworks.cabal.ca> References: <20060511063131.2B581494041@palinux.external.hp.com> <20060511081639.GH12272@parisc-linux.org> <20060511172517.GA22074@colo.lackof.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: parisc-linux@lists.parisc-linux.org, Matthew Wilcox To: Grant Grundler Return-Path: In-Reply-To: <20060511172517.GA22074@colo.lackof.org> List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: parisc-linux-bounces@lists.parisc-linux.org On Thu, May 11, 2006 at 11:25:17AM -0600, Grant Grundler wrote: > "bogus" isn't the word I would use. > I agree with Kyle that we don't want that behavior for every function. > But I want the compiler to tell me when we throw away return values > we normally use. > > I'll remove them since your last commit makes the casts superfluous. > And I don't recall why I opencoded READ_REG in the first place. :( > I think the reason we were seeing the warnings, and weren't with, for example, printk(), is that le{32,64}_to_cpu is a macro and not a function. And so we were actually discarding an assignment (statement with no effect in general...) rather than just discarding a return value. _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux