From 7f2f9f8ff2de9ae01765ffb190fb3fbb72f63b7c Mon Sep 17 00:00:00 2001 From: William King Date: Sat, 2 Aug 2014 19:47:07 -0700 Subject: [PATCH] Silence warning from clang-3.5 dealing with redefining the variable argv which is first defined as a function parameter --- src/switch_console.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/switch_console.c b/src/switch_console.c index 828613edbc..6100bb22df 100644 --- a/src/switch_console.c +++ b/src/switch_console.c @@ -495,15 +495,15 @@ static int comp_callback(void *pArg, int argc, char **argv, char **columnNames) char *p = target + 3, *list = NULL; if (p) { - char *argv[100] = { 0 }; + char *s_argv[100] = { 0 }; char *r_argv[1] = { 0 }, *r_cols[1] = {0}; list = strdup(p); - argc = switch_separate_string(list, ':', argv, (sizeof(argv) / sizeof(argv[0]))); + argc = switch_separate_string(list, ':', s_argv, (sizeof(s_argv) / sizeof(s_argv[0]))); for (i = 0; (int)i < argc; i++) { - if (!cur || !strncmp(argv[i], cur, strlen(cur))) { - r_argv[0] = argv[i]; + if (!cur || !strncmp(s_argv[i], cur, strlen(cur))) { + r_argv[0] = s_argv[i]; comp_callback(h, 1, r_argv, r_cols); } }