aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-14 17:22:39 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-14 17:22:39 +0000
commitf80f408b7e19e9020df4b935855c80f165fad74e (patch)
treea7dd02e8c880c572827da71360e2b34e51590643 /contrib/epee/include
parentMerge pull request #2756 (diff)
downloadmonero-f80f408b7e19e9020df4b935855c80f165fad74e.tar.xz
epee: don't disable -Wtautological-constant-out-of-range-compare on GCC
It's a CLANG only option, and causes GCC to error out
Diffstat (limited to 'contrib/epee/include')
-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