Commit 2c8b4864 authored by Davis E. King's avatar Davis E. King Committed by GitHub

Merge pull request #338 from stefan-it/misleading-indentation-pragma

unicode: Disable misleading-indentation warnings with GCC pragma
parents cac8f31e e9e4dabe
......@@ -289,7 +289,10 @@ namespace dlib
}
// ----------------------------------------------------------------------------------------
#if defined(__GNUC__) && __GNUC__ >= 6
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
#endif
template <typename T>
bool is_combining_char(
const T ch_
......@@ -478,6 +481,9 @@ namespace dlib
if ( ch < 0xE0100 )return false;if ( ch < 0xE01F0 )return true;
return false;
}
#if defined(__GNUC__) && __GNUC__ >= 6
#pragma GCC diagnostic pop
#endif
// ----------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment