diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-07-03 17:28:13 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-07-03 17:28:13 -0500 |
commit | aa0b4fc7cc6b3d84c44e23c3e8e347c46a55142e (patch) | |
tree | ec95efb7e49458df15b1b5bc05a22bafecbb337a | |
parent | Merge pull request #8357 (diff) | |
parent | clang warning fix for #8338 (diff) | |
download | monero-aa0b4fc7cc6b3d84c44e23c3e8e347c46a55142e.tar.xz |
Merge pull request #8358
fb3f7ce clang warning fix for #8338 (Jeffrey Ryan)
-rw-r--r-- | external/boost/archive/portable_binary_archive.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/external/boost/archive/portable_binary_archive.hpp b/external/boost/archive/portable_binary_archive.hpp index cdbd38aad..b1d6ae73e 100644 --- a/external/boost/archive/portable_binary_archive.hpp +++ b/external/boost/archive/portable_binary_archive.hpp @@ -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
}
}
|