Merge pull request #2743

9ff8e139 epee: disable a spurious warning for a storage function (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-11-14 15:30:43 +02:00
commit 176dd1fbe5
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -47,6 +47,7 @@ namespace epee
PRAGMA_WARNING_PUSH PRAGMA_WARNING_PUSH
PRAGMA_GCC("GCC diagnostic ignored \"-Wstrict-aliasing\"") PRAGMA_GCC("GCC diagnostic ignored \"-Wstrict-aliasing\"")
PRAGMA_GCC("GCC diagnostic ignored \"-Wtautological-constant-out-of-range-compare\"")
template<class t_stream> template<class t_stream>
size_t pack_varint(t_stream& strm, size_t val) size_t pack_varint(t_stream& strm, size_t val)
{ //the first two bits always reserved for size information { //the first two bits always reserved for size information