Well I finally jumped into Pelles Version 11. However like the old lady with the shoe who had so many children she did not know what to do, I've got so many new warnings it is overwhelming as I try to resolve each.
So here is the first warning which I find a bit weird.
warning #2242: Call to 'memset' removed.
I've got many of these. Here is the casewchar_t HR[10]; // 10 wide characters
memset(HR,0,10); // fill 1st 10 bytes with 0 <- warning #2242: Call to 'memset' removed.
So ok you might question why I do it - but why is it wrong?
Then there is this to add, and confound, When this is the code: wchar_t HR[10]; // 10 wide characters
memset(HR,0,10); // fill 1st 10 bytes with 0
memset(HR,0,10); // fill 1st 10 bytes with 0
There are NO warnings about removing memset .....
I'm attaching the simple as possible project as a zip. It includes both cases above as well as
alternative &HR[0] trial. Don't need to run anything just compile it.
Then - is the compiler really removing the memset commands?
Better to understand than to just disable the warning IMO...
Thanks for any clarification,
John Z