Преглед изворни кода

Add missing return after error report.

Stephen Kelly пре 12 година
родитељ
комит
0e1cb07e84
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      Source/cmGeneratorExpressionEvaluator.cxx

+ 1 - 0
Source/cmGeneratorExpressionEvaluator.cxx

@@ -429,6 +429,7 @@ static const struct LinkLanguageNode : public cmGeneratorExpressionNode
       reportError(context, content->GetOriginalExpression(),
       reportError(context, content->GetOriginalExpression(),
           "$<LINK_LANGUAGE> may only be used with targets.  It may not "
           "$<LINK_LANGUAGE> may only be used with targets.  It may not "
           "be used with add_custom_command.");
           "be used with add_custom_command.");
+      return std::string();
       }
       }
 
 
     const char *lang = target->GetLinkerLanguage(context->Config);
     const char *lang = target->GetLinkerLanguage(context->Config);