@@ -617,10 +617,10 @@ bool TParseContext::checkShaderVersion(const TSourceLoc &loc)
617617{
618618 if (GetMaxShaderVersionForSpec (mShaderSpec ) < mShaderVersion )
619619 {
620- // std::stringstream reasonStream = sh::InitializeStream<std::stringstream>();
621- // reasonStream << "unsupported shader version ";
622- // reasonStream << mShaderVersion;
623- // error (loc, reasonStream.str().c_str());
620+ std::stringstream reasonStream = sh::InitializeStream<std::stringstream>();
621+ reasonStream << " unsupported shader version " ;
622+ reasonStream << mShaderVersion ;
623+ warning (loc, reasonStream.str ().c_str (), " " );
624624 // printf("unsupported shader version\n");
625625 return true ;
626626 }
@@ -3691,7 +3691,7 @@ bool TParseContext::executeInitializer(const TSourceLoc &line,
36913691 {
36923692 TInfoSinkBase reasonStream;
36933693 reasonStream << " assigning non-constant to '" << *type << " '" ;
3694- error (line, reasonStream.c_str (), " =" );
3694+ warning (line, reasonStream.c_str (), " =" );
36953695
36963696 // We're still going to declare the variable to avoid extra error messages.
36973697 type->setQualifier (EvqTemporary);
@@ -9397,7 +9397,7 @@ TIntermBranch *TParseContext::addBranch(TOperator op,
93979397 }
93989398 else if (mCurrentFunction ->getReturnType () != expression->getType ())
93999399 {
9400- error (loc, " function return is not matching type:" , " return" );
9400+ warning (loc, " function return is not matching type:" , " return" );
94019401 }
94029402 if (!mControlFlow .empty ())
94039403 {
0 commit comments