Suggestion: Suppress C4017W warnings

11 Sep 2015

I've been getting a LOT of erroneous C4017W warnings after adding a new field to a struct in one of my projects. I researched it, and found out it's a data flow analysis warning related to hardware register use. Adding an extra field made my struct exactly 4B, which in turn made it a prime candidate for the compiler to store in a register. In other words, the compiler is optimizing my struct, and then complaining about its own optimizations...

/media/uploads/neilt6/facepalm.jpg

I propose that the online compiler should suppress this warning since all it does is generate "noise", potentially hiding other legitimate warnings. Apparently the ARM Compiler 5.04 and later suppress it by default, so even ARM knows it's garbage.

14 Sep 2015

Just resumed work on my project, and the warnings are gone! Thanks guys!

15 Sep 2015

Is it? :-) Cool !