forked from lthn/blockchain
disabled autological-constant-out-of-range-compare for clang/gcc
This commit is contained in:
parent
4c73053a9f
commit
c1208fd05d
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue