Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 13 Jan 2002 10:08:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 13 Jan 2002 10:08:03 -0500 Received: from mailout09.sul.t-online.com ([194.25.134.84]:51351 "EHLO mailout09.sul.t-online.com") by vger.kernel.org with ESMTP id ; Sun, 13 Jan 2002 10:07:54 -0500 Content-Type: text/plain; charset=US-ASCII From: 520047054719-0001@t-online.de (Oliver Neukum) Reply-To: Oliver.Neukum@lrz.uni-muenchen.de To: Alan Cox Subject: Re: ugly warnings with likely/unlikely Date: Sun, 13 Jan 2002 16:06:46 +0100 X-Mailer: KMail [version 1.3.2] Cc: linux-kernel@vger.kernel.org In-Reply-To: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-ID: <16PmEJ-1Pq1bsC@fwd04.sul.t-online.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 13 January 2002 16:07, Alan Cox wrote: > > if (likely(stru->pointer)) > > > > results in an ugly warning about using pointer as int. > > Is there something that could be done against that ? > > if (likely(stru->pointer == NULL)) > > Perhaps ? That works. But it's so much work to type it. Regards Oliver - 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/