mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
various: Fix GCC 11 compilation issues.
test_voicemail_api: Use empty char* for empty_msg_ids. chan_skinny: Fix size of calledParty to be maximum extension. menuselect: Change Makefile to stop deprecated warnings. Added comments test_linkedlist: 'bogus' variable was manually allocated from a macro and the test fails if this happens but the compiler couldn't 'see' this and returns a warning. memset to all 0's after allocation. chan_ooh323: Fixed various indentation issues that triggered misleading indentation warnings. ASTERISK-29682 Reported by: George Joseph Change-Id: If4fe42222c8444dc16828a42731ee53b4ce5cbbe
This commit is contained in:
committed by
Friendly Automation
parent
cfae5224e3
commit
99a1a427a9
@@ -148,6 +148,7 @@ AST_TEST_DEFINE(single_ll_tests)
|
||||
if (!(bogus = ast_alloca(sizeof(*bogus)))) {
|
||||
return AST_TEST_FAIL;
|
||||
}
|
||||
memset(bogus, 0, sizeof(*bogus));
|
||||
|
||||
if (AST_LIST_REMOVE(&test_list, bogus, list)) {
|
||||
ast_test_status_update(test, "AST_LIST_REMOVE should safely return NULL for missing element from empty list\n");
|
||||
|
||||
Reference in New Issue
Block a user