mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Merge pull request #2502 from ldoolitt/master
passes/pmgen/pmgen.py: trivial change to remove C++ compiler warnings
This commit is contained in:
		
						commit
						54466dc653
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -453,7 +453,7 @@ with open(outfile, "w") as f:
 | 
			
		|||
    print("  SigSpec port(Cell *cell, IdString portname) {", file=f)
 | 
			
		||||
    print("    try {", file=f)
 | 
			
		||||
    print("      return sigmap(cell->getPort(portname));", file=f)
 | 
			
		||||
    print("    } catch(std::out_of_range) { log_error(\"Accessing non existing port %s\\n\",portname.c_str()); }", file=f)
 | 
			
		||||
    print("    } catch(std::out_of_range&) { log_error(\"Accessing non existing port %s\\n\",portname.c_str()); }", file=f)
 | 
			
		||||
    print("  }", file=f)
 | 
			
		||||
    print("", file=f)
 | 
			
		||||
    print("  SigSpec port(Cell *cell, IdString portname, const SigSpec& defval) {", file=f)
 | 
			
		||||
| 
						 | 
				
			
			@ -464,7 +464,7 @@ with open(outfile, "w") as f:
 | 
			
		|||
    print("  Const param(Cell *cell, IdString paramname) {", file=f)
 | 
			
		||||
    print("    try {", file=f)
 | 
			
		||||
    print("      return cell->getParam(paramname);", file=f)
 | 
			
		||||
    print("    } catch(std::out_of_range) { log_error(\"Accessing non existing parameter %s\\n\",paramname.c_str()); }", file=f)
 | 
			
		||||
    print("    } catch(std::out_of_range&) { log_error(\"Accessing non existing parameter %s\\n\",paramname.c_str()); }", file=f)
 | 
			
		||||
    print("  }", file=f)
 | 
			
		||||
    print("", file=f)
 | 
			
		||||
    print("  Const param(Cell *cell, IdString paramname, const Const& defval) {", file=f)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue