lkml.org 
[lkml]   [2004]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] fix warning about duplicate 'const'
>>>>> "Andrew" == Andrew Haley <aph@redhat.com> 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/

\
 
 \ /
  Last update: 2005-03-22 14:01    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site