This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: "discards qualifiers" is less helpful than "discards const"
> Sorry, I apologize. It was just bad English; it's not my native language,
> and I often make mistakes.
No harm done.
> But simply reverting to `const', as I interpreted your proposition, is
> wrong, because, as you certainly know, there are other qualifiers, and
> telling the user that his code is discarding `const' when, in fact, it's
> discarding `volatile', is not only unclear and misleading, it's actually
> wrong.
Sorry if I was unclear. What I meant to say was: I want a message that
tells me (in all cases) what qualifier(s) is/are being discarded. In the
case where `const' is being discarded, a message that says "discards
qualifiers" is less helpful than a message that says "discards const". Of
course, if some other qualifier is being discarded, I want the correct
qualifier in the message, not `const'.
Thanks -
L. Peter Deutsch | Aladdin Enterprises :::: ghost@aladdin.com
203 Santa Margarita Ave. | tel. +1-650-322-0103 (AM only); fax +1-650-322-1734
Menlo Park, CA 94025 | http://www.cs.wisc.edu/~ghost/index.html