Need suggestion about bug 68425

Joseph Myers joseph@codesourcery.com
Mon Feb 22 21:38:00 GMT 2016


On Sun, 21 Feb 2016, Prasad Ghangal wrote:

> -          pedwarn_init (loc, 0,
> -                "excess elements in array initializer");
> +          pedwarn_init (loc, 0, "excess elements in array initializer "
> +              "(%lu elements, expected %lu)",
> +              tree_to_uhwi (constructor_index) + 1,
> +              tree_to_uhwi (constructor_max_index) + 1);

%lu is not correct for HOST_WIDE_INT.  You need to use %wu.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc mailing list