Explorar o código

Add missing return after error report.

Stephen Kelly %!s(int64=12) %!d(string=hai) anos
pai
achega
0e1cb07e84
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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(),
           "$<LINK_LANGUAGE> may only be used with targets.  It may not "
           "be used with add_custom_command.");
+      return std::string();
       }
 
     const char *lang = target->GetLinkerLanguage(context->Config);