Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 10 Jun 2002 16:03:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 10 Jun 2002 16:03:50 -0400 Received: from p50887BDF.dip.t-dialin.net ([80.136.123.223]:4997 "EHLO hawkeye.luckynet.adm") by vger.kernel.org with ESMTP id ; Mon, 10 Jun 2002 16:03:48 -0400 Date: Mon, 10 Jun 2002 14:03:42 -0600 (MDT) From: Thunder from the hill X-X-Sender: thunder@hawkeye.luckynet.adm To: Andrew Morton cc: Tom Rini , Kernel Mailing List Subject: Re: [PATCH] 2.5.21 kill warnings 4/19 In-Reply-To: <3D050350.A7011AE4@zip.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, 10 Jun 2002, Andrew Morton wrote: > wrt the __func__ thing: is it possible to do: > > #if (compiler version test) > #define __FUNCTION__ __func__ > #endif > > to kill the 3.x warning? #include #define __FUNCTION__ __func__ int main(int argc, char **argv) { int i; for (i = 0; i < argc; i++) { printf(__FUNCTION__ " encountered argument "); printf("%s\n", argv[i]); } exit(0); } Obviously, yes. Regards, Thunder -- German attitude becoming | Thunder from the hill at ngforever rightaway popular: | "Get outa my way, | free inhabitant not directly for I got a mobile phone!" | belonging anywhere - 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/