charnames: Check for enabled warnings before warning