This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Need suggestion about bug 68425


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]