Re: uint32_t typedef differences causes issues


Maciek Borzecki <maciek.borzecki@...>
 

On Fri, Jan 20, 2017 at 5:16 PM, David Brown <david.brown(a)linaro.org> wrote:
On Fri, Jan 20, 2017 at 10:12:36AM -0600, Kumar Gala wrote:

We could also always turn off -Wformat.

I think it'd be better to fix things like this. Although it sometimes
has problems, -Wformat also catches a lot of things that are indeed
wrong.
If i recall correctly -Wformat also affects scanf() checks. It would
be bad to leave these calls unchecked.

It isn't always going to be possible to make it right, since
gcc is expecting a full printf rather than our limited printk, but it
should still catch gross size mismatches.


--
Maciek Borzecki

Join devel@lists.zephyrproject.org to automatically receive all group messages.