mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-06 13:07:21 +00:00
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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433694 65c4cc65-6c06-0410-ace0-fbb531ad65f3
44 lines
723 B
C
44 lines
723 B
C
/*
|
|
* Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
|
|
* Universitaet Berlin. See the accompanying file "COPYRIGHT" for
|
|
* details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#ifdef HAS_STRING_H
|
|
#include <string.h>
|
|
#else
|
|
# include "proto.h"
|
|
extern char * memset P((char *, int, int));
|
|
#endif
|
|
|
|
#ifdef HAS_STDLIB_H
|
|
# include <stdlib.h>
|
|
#else
|
|
# ifdef HAS_MALLOC_H
|
|
# include <malloc.h>
|
|
# else
|
|
extern char * malloc();
|
|
# endif
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "gsm.h"
|
|
#include "private.h"
|
|
#include "proto.h"
|
|
|
|
gsm gsm_create P0()
|
|
{
|
|
gsm r;
|
|
|
|
r = (gsm)malloc(sizeof(struct gsm_state));
|
|
if (!r) return r;
|
|
|
|
memset((char *)r, 0, sizeof(*r));
|
|
r->nrp = 40;
|
|
|
|
return r;
|
|
}
|