epee: don't disable -Wtautological-constant-out-of-range-compare on GCC

It's a CLANG only option, and causes GCC to error out
This commit is contained in:
moneromooo-monero 2017-11-14 17:22:39 +00:00
parent f48aeab5c4
commit f80f408b7e
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -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