Skip to content

Commit

Permalink
Merge pull request monero-project#8358
Browse files Browse the repository at this point in the history
fb3f7ce clang warning fix for monero-project#8338 (Jeffrey Ryan)
  • Loading branch information
luigi1111 committed Jul 3, 2022
2 parents e2e5fbf + fb3f7ce commit aa0b4fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions external/boost/archive/portable_binary_archive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit aa0b4fc

Please sign in to comment.