diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-05-26 21:25:30 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-05-26 21:25:30 -0500 |
commit | 72cba504585dac3a49ca9b7f26146e04014980c8 (patch) | |
tree | 1d37fbb8cbb4ce6687e6e29e56988f90434f2bc7 | |
parent | Merge pull request #8337 (diff) | |
parent | GCC: Fix -Wstringop-overflow= warnings (diff) | |
download | monero-72cba504585dac3a49ca9b7f26146e04014980c8.tar.xz |
Merge pull request #8338
5858f05 GCC: Fix -Wstringop-overflow= warnings (Jeffrey Ryan)
-rw-r--r-- | external/boost/archive/portable_binary_archive.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/external/boost/archive/portable_binary_archive.hpp b/external/boost/archive/portable_binary_archive.hpp index 7ae01a225..cdbd38aad 100644 --- a/external/boost/archive/portable_binary_archive.hpp +++ b/external/boost/archive/portable_binary_archive.hpp @@ -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
}
}
|