Compiler fixes for GCC with -Og

ASTERISK-29144

Change-Id: I2a72c072083b4492a223c6f9d73d21f4f424db62
This commit is contained in:
Alexander Traud 2020-10-29 09:55:53 +01:00 committed by Kevin Harwell
parent 28faafd1c4
commit 57ee79a563
5 changed files with 5 additions and 5 deletions

View File

@ -585,7 +585,7 @@ int ooDecodeUUIE(OOCTXT* pctxt, Q931Message *q931Msg)
unsigned int i;
ASN1BOOL aligned=TRUE;
int stat;
Q931InformationElement *ie;
Q931InformationElement *ie=NULL;
/* OOCTXT *pctxt = &gH323ep.msgctxt; */
if(q931Msg ==NULL)
{

View File

@ -396,7 +396,7 @@ static int select_item_menu(struct ast_channel *chan, struct directory_item **it
{
struct directory_item **block, *item;
int i, limit, res = 0;
char buf[9];
char buf[7+12]; /* INT_MIN has a length of 12 chars */
/* option p(n): cellphone pause option */
select_item_pause(chan, flags, opts);

View File

@ -11198,7 +11198,7 @@ static int vm_authenticate(struct ast_channel *chan, char *mailbox, int mailbox_
int skipuser, int max_logins, int silent)
{
int useadsi = 0, valid = 0, logretries = 0;
char password[AST_MAX_EXTENSION], *passptr;
char password[AST_MAX_EXTENSION], *passptr = NULL;
struct ast_vm_user vmus, *vmu = NULL;
/* If ADSI is supported, setup login screen */

View File

@ -147,7 +147,7 @@ static struct ast_channel *audiosocket_request(const char *type,
struct ast_format_cap *caps = NULL;
struct ast_format *fmt = NULL;
uuid_t uu;
int fd;
int fd = -1;
AST_DECLARE_APP_ARGS(args,
AST_APP_ARG(destination);
AST_APP_ARG(idStr);

View File

@ -1181,7 +1181,7 @@ static int free_acf_query(struct acf_odbc_query *query)
static int init_acf_query(struct ast_config *cfg, char *catg, struct acf_odbc_query **query)
{
const char *tmp;
const char *tmp2;
const char *tmp2 = NULL;
int i;
if (!cfg || !catg) {