diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-11-14 21:33:20 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-11-14 21:33:20 +0200 |
commit | 2c12847dd6d197ad30c7c0f4890710281d6bf5ee (patch) | |
tree | 45271aa64f6bebcb7d7c77e769706153a87000b8 /contrib | |
parent | Merge pull request #2692 (diff) | |
parent | epee: don't disable -Wtautological-constant-out-of-range-compare on GCC (diff) | |
download | monero-2c12847dd6d197ad30c7c0f4890710281d6bf5ee.tar.xz |
Merge pull request #2811
f80f408b epee: don't disable -Wtautological-constant-out-of-range-compare on GCC (moneromooo-monero)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/include/storages/portable_storage_to_bin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/epee/include/storages/portable_storage_to_bin.h b/contrib/epee/include/storages/portable_storage_to_bin.h index 34ec02b7e..38e9f9098 100644 --- a/contrib/epee/include/storages/portable_storage_to_bin.h +++ b/contrib/epee/include/storages/portable_storage_to_bin.h @@ -47,7 +47,9 @@ namespace epee PRAGMA_WARNING_PUSH PRAGMA_GCC("GCC diagnostic ignored \"-Wstrict-aliasing\"") +#ifdef __clang__ PRAGMA_GCC("GCC diagnostic ignored \"-Wtautological-constant-out-of-range-compare\"") +#endif template<class t_stream> size_t pack_varint(t_stream& strm, size_t val) { //the first two bits always reserved for size information |