mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +00:00
Compiler fixes for gcc 10
This patch fixes a few compile warnings/errors that now occur when using gcc 10+. Also, the Makefile.rules check to turn off partial inlining in gcc versions greater or equal to 8.2.1 had a bug where it only it only checked against versions with at least 3 numbers (ex: 8.2.1 vs 10). This patch now ensures any version above the specified version is correctly compared. Change-Id: I54718496eb0c3ce5bd6d427cd279a29e8d2825f9
This commit is contained in:
committed by
Friendly Automation
parent
559fa0e89c
commit
3d1bf3c537
@@ -306,7 +306,7 @@ static struct ast_channel_snapshot_peer *channel_snapshot_peer_create(struct ast
|
||||
|
||||
strcpy(snapshot->account, peeraccount); /* Safe */
|
||||
snapshot->linkedid = snapshot->account + peeraccount_len;
|
||||
strcpy(snapshot->linkedid, linkedid); /* Safe */
|
||||
ast_copy_string(snapshot->linkedid, linkedid, linkedid_len); /* Safe */
|
||||
|
||||
return snapshot;
|
||||
}
|
||||
@@ -370,7 +370,7 @@ static struct ast_channel_snapshot_connected *channel_snapshot_connected_create(
|
||||
|
||||
strcpy(snapshot->name, name); /* Safe */
|
||||
snapshot->number = snapshot->name + name_len;
|
||||
strcpy(snapshot->number, number); /* Safe */
|
||||
ast_copy_string(snapshot->number, number, number_len); /* Safe */
|
||||
|
||||
return snapshot;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user