Daniel-Constantin Mierla writes:
It is a matter of the OS, compiler and version if this
kind of warning
is shown with the default flags. For example clang doesn't show it.
Latest versions of gcc do it.
If clang does not show it, then the compile test should be done with
gcc. It is very bad policy if Kamailio project allows compiler warnings
in the source code.
Also, the code is compiled by travis-ci, so if there
is a compile error,
there will be an email alert on the sr-dev list.
I don't know if travis-ci warns about unused variables. If not, then
it is useless in this regard.
-- Juha