From 8483276494c5b0c76f17ba22bb6b8cb0ee440c93 Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Mon, 8 Oct 2012 14:53:23 +1030 Subject: [PATCH] Fix compiler warning on Linux gcc 4.7.1 Function defined but not used. Commented out the function definition for the time being. --- vomp_console.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vomp_console.c b/vomp_console.c index f7e7b9c9..7575b924 100644 --- a/vomp_console.c +++ b/vomp_console.c @@ -55,10 +55,18 @@ static void send_pickup(int session_id){ static void send_call(const char *sid, const char *caller_id, const char *remote_ext){ monitor_client_writeline(monitor_client_fd, "call %s %s %s\n", sid, caller_id, remote_ext); } + +#if 0 +This function commented out to avoid "defined but not used" compiler warning. Once you need +it, just get rid of the #if0..#endif and this comment. +-- Andrew Bettison + static void send_audio(int session_id, unsigned char *buffer, int len, int codec){ monitor_client_writeline_and_data(monitor_client_fd, buffer, len, "audio %06x %d\n", session_id, codec); } +#endif + static int remote_call(char *cmd, int argc, char **argv, unsigned char *data, int dataLen, void *context){ int token = strtol(argv[0], NULL, 16);