#endif
/* The first problematic code point is the first surrogate */
- if (uv >= UNICODE_SURROGATE_FIRST
+ if ( flags /* It's common to turn off all these */
+ && uv >= UNICODE_SURROGATE_FIRST
&& ckWARN3_d(WARN_SURROGATE, WARN_NON_UNICODE, WARN_NONCHAR))
{
if (UNICODE_IS_SURROGATE(uv)) {