aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-11-14 21:33:20 +0200
committerRiccardo Spagni <ric@spagni.net>2017-11-14 21:33:20 +0200
commit2c12847dd6d197ad30c7c0f4890710281d6bf5ee (patch)
tree45271aa64f6bebcb7d7c77e769706153a87000b8 /contrib
parentMerge pull request #2692 (diff)
parentepee: don't disable -Wtautological-constant-out-of-range-compare on GCC (diff)
downloadmonero-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.h2
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