diff options
author | Matthew Jordan <mjordan@digium.com> | 2015-03-28 12:56:43 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2015-03-28 12:56:43 +0000 |
commit | d2776d4d456af2c332657852a1bbbd56c52b93e9 (patch) | |
tree | 2355bf96799ae8b4783ba9f6fdd9f459574893f6 /main/editline | |
parent | cb7b6bc4bee7f099bbf7c89b8b87f3cbe9c7725b (diff) |
clang compiler warnings: Fix a variety of "unused" warnings
This patch fixes the -Wunused-value -Wunused-variable -Wunused-const-variable
errors caught by clang. Specifically:
* apps/app_queue.c: removed unused qpm_cmd_usage[], qum_cmd_usage[],
qsmp_cmd_usage[]
* cel/cel_sqlite3_custom.c: removed unused name[] = "cel_sqlite3_custom"
* channels/chan_pjsip.c: removed unused desc[] = "PJSIP Channel"
* codecs/gsm/src/gsm_create.c: removed unused ident[] = "$Header$"
* funcs/func_env.c:729: Fixed ast_str_append_substr.
* main/editline/np/strlcat.c: removed unused rcsid variable
* main/editline/np/strlcpy.c: removed unused rcsid variable
* main/security_events.c: removed unused TIMESTAMP_STR_LEN
* utils/conf2ael.c: removed unused cfextension_states
* utils/extconf.c: removed unused cfextension_states
Review: https://reviewboard.asterisk.org/r/4526
ASTERISK-24917
Reported by: dkdegroot
patches:
rb4526.patch submitted by dkdegroot (License 6600)
........
Merged revisions 433693 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 433694 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@433695 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/editline')
-rw-r--r-- | main/editline/np/strlcat.c | 8 | ||||
-rw-r--r-- | main/editline/np/strlcpy.c | 10 |
2 files changed, 0 insertions, 18 deletions
diff --git a/main/editline/np/strlcat.c b/main/editline/np/strlcat.c index 6c9f1e92d..d9d0e72c8 100644 --- a/main/editline/np/strlcat.c +++ b/main/editline/np/strlcat.c @@ -26,14 +26,6 @@ */ #include "config.h" -#if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp $"; -#endif /* LIBC_SCCS and not lint */ -#ifndef lint -static const char rcsid[] = - "$FreeBSD: src/lib/libc/string/strlcat.c,v 1.2.4.2 2001/07/09 23:30:06 obrien Exp $"; -#endif - #include <sys/types.h> #include <string.h> diff --git a/main/editline/np/strlcpy.c b/main/editline/np/strlcpy.c index 1f154bcf2..ecad62b49 100644 --- a/main/editline/np/strlcpy.c +++ b/main/editline/np/strlcpy.c @@ -28,16 +28,6 @@ */ #include "config.h" -#if defined(LIBC_SCCS) && !defined(lint) -#if 0 -static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $"; -#endif -#endif /* LIBC_SCCS and not lint */ -#ifndef lint -static const char rcsid[] = - "$FreeBSD: src/lib/libc/string/strlcpy.c,v 1.2.4.1 2001/07/09 23:30:06 obrien Exp $"; -#endif - #include <sys/types.h> #include <string.h> |