mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +00:00
gcc14: Fix issues caught by gcc 14
* reqresp_parser.c: Fix misuse of "static" with linked list definitions * test_message.c: Fix segfaults caused by passing NULL as an sprintf fmt
This commit is contained in:
committed by
asterisk-org-access-app[bot]
parent
e8c5c3380a
commit
0dadbff18a
@@ -279,7 +279,7 @@ AST_TEST_DEFINE(sip_parse_uri_full_test)
|
||||
|
||||
struct testdata *testdataptr;
|
||||
|
||||
static AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
|
||||
AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
|
||||
|
||||
struct testdata td1 = {
|
||||
.desc = "no headers",
|
||||
@@ -1326,7 +1326,7 @@ AST_TEST_DEFINE(parse_name_andor_addr_test)
|
||||
|
||||
struct testdata *testdataptr;
|
||||
|
||||
static AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
|
||||
AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
|
||||
|
||||
struct testdata td1 = {
|
||||
.desc = "quotes and brackets",
|
||||
@@ -1552,7 +1552,7 @@ AST_TEST_DEFINE(parse_contact_header_test)
|
||||
struct contact *tdcontactptr;
|
||||
struct contact *contactptr;
|
||||
|
||||
static AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
|
||||
AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
|
||||
struct contactliststruct contactlist1, contactlist2;
|
||||
|
||||
struct testdata td1 = {
|
||||
@@ -1775,7 +1775,7 @@ AST_TEST_DEFINE(sip_parse_options_test)
|
||||
};
|
||||
|
||||
struct testdata *testdataptr;
|
||||
static AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
|
||||
AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
|
||||
|
||||
struct testdata test1 = {
|
||||
.name = "test_all_unsupported",
|
||||
@@ -2475,7 +2475,7 @@ AST_TEST_DEFINE(parse_via_test)
|
||||
AST_LIST_ENTRY(testdata) list;
|
||||
};
|
||||
struct testdata *testdataptr;
|
||||
static AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
|
||||
AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
|
||||
struct testdata t1 = {
|
||||
.in = "SIP/2.0/UDP host:port;branch=thebranch",
|
||||
.expected_protocol = "SIP/2.0/UDP",
|
||||
|
Reference in New Issue
Block a user