test for depreciacion warnings only on debug builds

Fix adherence to clang-format rules
This commit is contained in:
Mariusz Chwalba 2018-09-16 19:01:57 +02:00
parent 5614692a1a
commit 47bf26c40d

View file

@ -4443,7 +4443,9 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
continue;
} break;
case GDScriptTokenizer::TK_PR_SLAVE:
#ifdef DEBUG_ENABLED
_add_warning(GDScriptWarning::DEPRECATED_KEYWORD, tokenizer->get_token_line(), "slave", "puppet");
#endif
case GDScriptTokenizer::TK_PR_PUPPET: {
//may be fallthrough from export, ignore if so