1
0
Fork 0
forked from lthn/blockchain

disabled autological-constant-out-of-range-compare for clang/gcc

This commit is contained in:
cryptozoidberg 2020-02-23 08:08:39 +01:00
parent 4c73053a9f
commit c1208fd05d
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -587,12 +587,17 @@ namespace log_space
CONSOLE_DEFAULT_STREAM << ptarget_buf;
if(pallocated_buf) delete [] pallocated_buf;
#else
PUSH_GCC_WARNINGS
DISABLE_GCC_AND_CLANG_WARNING(autological-constant-out-of-range-compare)
std::string buf(buffer, buffer_len);
for(size_t i = 0; i!= buf.size(); i++)
{
if(buf[i] == 0x7 || buf[i] == 0x95)
buf[i] = '^';
}
POP_GCC_WARNINGS
CONSOLE_DEFAULT_STREAM << buf;
#endif