On 9 June 2010 22:35, Joseph S. Myers wrote: > On Wed, 9 Jun 2010, Manuel López-Ibáñez wrote: > >> note: to be safe all intermediate pointers must be equally qualified > > The requirement is not that they be equally qualified, it's that they be > const-qualified.  (That is, if you are adding "volatile" qualifiers, > "const" is still needed at intermediate levels; you can convert char ** to > volatile char *const * but not to volatile char *volatile *.) Bootstrapped and regression tested on x86_64-linux-gnu. OK for trunk? 2010-06-11 Manuel López-Ibáñez * c-typeck.c (handle_warn_cast_qual): Add loc parameter. Improve warning message. (build_c_cast): Pass location to handle_warn_cast_qual.