Skip to content

Commit

Permalink
epee: don't disable -Wtautological-constant-out-of-range-compare on GCC
Browse files Browse the repository at this point in the history
It's a CLANG only option, and causes GCC to error out
  • Loading branch information
moneromooo-monero committed Nov 14, 2017
1 parent f48aeab commit f80f408
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/epee/include/storages/portable_storage_to_bin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f80f408

Please sign in to comment.