Comment Re:Very different code (Score 1) 225
So the solution is either to turn off that specific warning (usually means it's off in all files)
why?
It's very easy to tailor compiler options for each source file in the Makefile.
There's also 'pragma GCC diagnostic push/pop', even if it doesn't work for some cases (like -Wunused-function).
For unused functions/variables/parameters it's best to conditionally define 'UNUSED__' to '__attribute__((unused))' for gcc and use that; creating dummy use cases is stupid.