i got this warning on debian wheezy while building ctl command on master:
parse_listen_id.c: In function 'str2s': parse_listen_id.c:66:17: warning: variable 'init' set but not used [-Wunused-but-set-variable]
that i don't remember seeing it before, but may be i was not looking.
-- juha
Hello,
from the code init var is used in printing a log. Do you compile with no log? Otherwise it seems used.
Cheers, Daniel
On 4/11/13 8:43 AM, Juha Heinanen wrote:
i got this warning on debian wheezy while building ctl command on master:
parse_listen_id.c: In function 'str2s': parse_listen_id.c:66:17: warning: variable 'init' set but not used [-Wunused-but-set-variable]
that i don't remember seeing it before, but may be i was not looking.
-- juha
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Daniel-Constantin Mierla writes:
from the code init var is used in printing a log. Do you compile with no log? Otherwise it seems used.
in didn't give any special compiler options. i looked at the code and perhaps gcc complains, because variable init is it possible to execute the function without init being used. there was not simple change.
-- juha
On 4/13/13 11:21 AM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
from the code init var is used in printing a log. Do you compile with no log? Otherwise it seems used.
in didn't give any special compiler options. i looked at the code and perhaps gcc complains, because variable init is it possible to execute the function without init being used. there was not simple change.
there is a compile time option to disable logging, that will redefine DBG()/ERR() functions to empty ops, but it is not the case with default settings. Maybe is some misunderstanding of the code from gcc.
Cheers, Daniel