mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	aiger2: Resolve warnings
- Remove unused statics CONST_FALSE and CONST_TRUE (which appear to have been folded into the `Index` declaration as CFALSE and CTRUE). - Assign default value of EMPTY_LIT to `a` and `b` for comparison ops. - Tag debug only variables with YS_MAYBE_UNUSED, don't assign unused variables (but continue to call the function because it moves the file pointer).
This commit is contained in:
		
							parent
							
								
									1de5d98ae2
								
							
						
					
					
						commit
						e634e9c26b
					
				
					 2 changed files with 10 additions and 15 deletions
				
			
		|  | @ -198,11 +198,10 @@ struct Xaiger2Frontend : public Frontend { | |||
| 
 | ||||
| 				int ci_counter = 0; | ||||
| 				for (uint32_t i = 0; i < no_boxes; i++) { | ||||
| 					uint32_t box_inputs, box_outputs, box_id, box_seq; | ||||
| 					box_inputs = read_be32(*f); | ||||
| 					box_outputs = read_be32(*f); | ||||
| 					box_id = read_be32(*f); | ||||
| 					box_seq = read_be32(*f); | ||||
| 					/* unused box_inputs = */ read_be32(*f); | ||||
| 					YS_MAYBE_UNUSED auto box_outputs = read_be32(*f); | ||||
| 					/* unused box_id = */ read_be32(*f); | ||||
| 					auto box_seq = read_be32(*f); | ||||
| 
 | ||||
| 					log("box_seq=%d boxes.size=%d\n", box_seq, (int) boxes.size()); | ||||
| 					log_assert(box_seq < boxes.size()); | ||||
|  | @ -337,11 +336,10 @@ struct Xaiger2Frontend : public Frontend { | |||
| 						  len, ci_num, co_num, pi_num, po_num, no_boxes); | ||||
| 
 | ||||
| 				for (uint32_t i = 0; i < no_boxes; i++) { | ||||
| 					uint32_t box_inputs, box_outputs, box_id, box_seq; | ||||
| 					box_inputs = read_be32(*f); | ||||
| 					box_outputs = read_be32(*f); | ||||
| 					box_id = read_be32(*f); | ||||
| 					box_seq = read_be32(*f); | ||||
| 					YS_MAYBE_UNUSED auto box_inputs = read_be32(*f); | ||||
| 					/* unused box_outputs = */ read_be32(*f); | ||||
| 					/* unused box_id = */ read_be32(*f); | ||||
| 					auto box_seq = read_be32(*f); | ||||
| 
 | ||||
| 					log("box_seq=%d boxes.size=%d\n", box_seq, (int) boxes.size()); | ||||
| 					log_assert(box_seq < boxes.size()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue