Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262669AbUCJSgK (ORCPT ); Wed, 10 Mar 2004 13:36:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262764AbUCJSgK (ORCPT ); Wed, 10 Mar 2004 13:36:10 -0500 Received: from sadr.equallogic.com ([66.155.203.134]:28141 "HELO sadr.equallogic.com") by vger.kernel.org with SMTP id S262669AbUCJSgA (ORCPT ); Wed, 10 Mar 2004 13:36:00 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16463.24585.85535.682722@gargle.gargle.HOWL> Date: Wed, 10 Mar 2004 13:35:53 -0500 From: Paul Koning To: aph@redhat.com Cc: rth@twiddle.net, torvalds@osdl.org, thomas.schlichter@web.de, akpm@osdl.org, linux-kernel@vger.kernel.org, gcc@gcc.gnu.org Subject: Re: [PATCH] fix warning about duplicate 'const' References: <200403090043.21043.thomas.schlichter@web.de> <20040308161410.49127bdf.akpm@osdl.org> <200403090217.40867.thomas.schlichter@web.de> <20040310054918.GB4068@twiddle.net> <20040310182227.GA6647@twiddle.net> <16463.24215.666911.238474@cuddles.cambridge.redhat.com> X-Mailer: VM 7.17 under 21.4 (patch 14) "Reasonable Discussion" XEmacs Lucid Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 811 Lines: 25 >>>>> "Andrew" == Andrew Haley writes: Andrew> Richard Henderson writes: >> On Wed, Mar 10, 2004 at 07:43:10AM -0800, Linus Torvalds wrote: > >> Ok, let's try just stripping the "const" out of the min/max >> macros, and > see what complains. >> >> I remember what complains. You get actual errors from >> >> const int x; int y; min(x, y); Andrew> Can you explain *why* we have to produce a diagnostic for Andrew> "const const int" by default? Andrew> Can't we dispatch such things to "-pedantic" ? I like that suggestion. paul - 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/