mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Use warning function in TypeChecker
This commit is contained in:
		
							parent
							
								
									9d30450167
								
							
						
					
					
						commit
						0dd75ac100
					
				| @ -718,11 +718,10 @@ bool TypeChecker::visit(VariableDeclarationStatement const& _statement) | |||||||
| 		{ | 		{ | ||||||
| 			if (ref->dataStoredIn(DataLocation::Storage)) | 			if (ref->dataStoredIn(DataLocation::Storage)) | ||||||
| 			{ | 			{ | ||||||
| 				auto err = make_shared<Error>(Error::Type::Warning); | 				warning( | ||||||
| 				*err << | 					varDecl.location(), | ||||||
| 					errinfo_sourceLocation(varDecl.location()) << | 					"Uninitialized storage pointer. Did you mean '<type> memory " + varDecl.name() + "'?" | ||||||
| 					errinfo_comment("Uninitialized storage pointer. Did you mean '<type> memory " + varDecl.name() + "'?"); | 				); | ||||||
| 				m_errors.push_back(err); |  | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 		varDecl.accept(*this); | 		varDecl.accept(*this); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user