Merge pull request #8358

fb3f7ce clang warning fix for #8338 (Jeffrey Ryan)
pull/470/head
luigi1111 2 years ago
commit aa0b4fc7cc
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

@ -44,12 +44,16 @@ reverse_bytes(signed char size, char *address){
char * first = address;
char * last = first + size - 1;
for(;first < last;++first, --last){
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow="
#endif
char x = *last;
*last = *first;
*first = x;
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
}
}

Loading…
Cancel
Save