On Fri, 22 Apr 2016, Bernd Schmidt wrote:

> +/* Returns the smallest location != UNKNOWN_LOCATION in LOCATIONS,
> +   considering only those c_declspec_words found in LIST, which
> +   must be terminated by cdw_number_of_elements.  */
> +
> +static location_t
> +smallest_type_quals_location (const location_t* locations,
> +                           c_declspec_word *list)

I'd expect list to be a pointer to const...

> @@ -6101,6 +6122,18 @@ grokdeclarator (const struct c_declarato
>              qualify the return type, not the function type.  */
>           if (type_quals)
>             {
> +             enum c_declspec_word ignored_quals_list[] =
> +               {
> +                 cdw_const, cdw_volatile, cdw_restrict, cdw_address_space,
> +                 cdw_number_of_elements
> +               };

 ... and ignored_quals_list to be static const here.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to