ARM Toolchain r1
Rant: All the C Compiler Warnings ...
Enable all the warnings!
This is one of the truths you learn when you start working with C. Most
of the time adding
CPPFLAGS="-W -Wall -Werror" is all you need to find
all the nasty bugs. And if that’s not enough, there are tons of tools
for static code analysis, like
Coverity Scan, to help you find all the
However, these pesky warnings (some of which cannot even be disabled!)
are sometimes more of a nuisance than help. Sometimes you know that
some parameters to a function will remain unused – it’s a callback, and
you don’t need all the data given to you. So you start adding all kinds
of voodoo, like
__attribute__ ((unused)) … seriously?