Messages in this thread | | | Date | Wed, 10 Mar 2004 07:43:10 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: [PATCH] fix warning about duplicate 'const' |
| |
On Tue, 9 Mar 2004, Richard Henderson wrote: > > seems dicey at best. I'm not sure what to do about this, actually. > We might could do something with a new __nonqual_typeof(a) that > strips outermost type qualifications, but I havn't given that much > thought.
Ok, let's try just stripping the "const" out of the min/max macros, and see what complains. What the code _really_ wants to do is to just compare two types for being basically equal, and in real life what Linux really would prefer is to have "types" as first-class citizens and being able to compare them directly instead of playing games. And we may end up having that as a preprocessor phase (ie I might add it to the semantic parse thing).
Linus - 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/
| |