瀏覽代碼

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(),
           "$<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);