This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Need suggestion about bug 68425
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Prasad Ghangal <prasad dot ghangal at gmail dot com>
- Cc: Manuel López-Ibáñez <lopezibanez at gmail dot com>, David Malcolm <dmalcolm at redhat dot com>, gcc Mailing List <gcc at gcc dot gnu dot org>
- Date: Mon, 22 Feb 2016 21:38:23 +0000
- Subject: Re: Need suggestion about bug 68425
- Authentication-results: sourceware.org; auth=none
- References: <CAE+uiWYLZ6ODDc3nR3zgAdxekTtSAD10Ba3pqJ4Y--FJYo5Fig at mail dot gmail dot com> <56C5D529 dot 9080700 at gmail dot com> <1455909237 dot 9333 dot 34 dot camel at redhat dot com> <CAESRpQA4_+f==EyAdre64OOcLYD2KBFFhhpyLb0Z_nrG9kfuXw at mail dot gmail dot com> <CAE+uiWaua28sLnrrVNmZo4Y0S-qJnbh-qWRQHA8prNCDuijQ4A at mail dot gmail dot com>
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