From: Pavel Machek Subject: Re: share/private/slave a subtree - define vs enum Date: Sun, 10 Jul 2005 23:57:22 +0200 Message-ID: <20050710215722.GA12054@elf.ucw.cz> References: <20050708180302.GC1165@wiggy.net> <42CEC17D.8020309@waychison.com> <20050708181502.GD1165@wiggy.net> <42CEE0A7.8090006@waychison.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Wichert Akkerman , Bryan Henderson , Roman Zippel , Andrew Morton , bfields@fieldses.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linuxram@us.ibm.com, Miklos Szeredi , Pekka J Enberg , Alexander Viro Return-path: To: Mike Waychison Content-Disposition: inline In-Reply-To: <42CEE0A7.8090006@waychison.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hi! > >>enums in C are (de?)promoted to integral types under most conditions, so > >>the type-checking is useless. > > > > > >It's a warning in gcc afaik and spare should complain as well. > > Check again. Check sparse with -Wbitwise and enum properly marked as bitwise... Pavel -- teflon -- maybe it is a trademark, but it should not be.