mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
Merge pull request #8338
5858f05
GCC: Fix -Wstringop-overflow= warnings (Jeffrey Ryan)
This commit is contained in:
commit
72cba50458
@ -44,9 +44,12 @@ reverse_bytes(signed char size, char *address){
|
||||
char * first = address;
|
||||
char * last = first + size - 1;
|
||||
for(;first < last;++first, --last){
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstringop-overflow="
|
||||
char x = *last;
|
||||
*last = *first;
|
||||
*first = x;
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user