mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	add dummy initialization to unused variables to avoid compiler warnings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									31d6abcfe8
								
							
						
					
					
						commit
						45e31b0db3
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -768,11 +768,11 @@ def mk_log_macro(file, name, params):
 | 
			
		|||
                cap = param_array_capacity_pos(p)
 | 
			
		||||
                if cap not in auxs:
 | 
			
		||||
                    auxs.add(cap)
 | 
			
		||||
                    file.write("unsigned _Z3_UNUSED Z3ARG%s; " % cap)
 | 
			
		||||
                    file.write("unsigned _Z3_UNUSED Z3ARG%s = 0; " % cap)
 | 
			
		||||
                sz  = param_array_size_pos(p)
 | 
			
		||||
                if sz not in auxs:
 | 
			
		||||
                    auxs.add(sz)
 | 
			
		||||
                    file.write("unsigned * _Z3_UNUSED Z3ARG%s; " % sz)
 | 
			
		||||
                    file.write("unsigned * _Z3_UNUSED Z3ARG%s = 0; " % sz)
 | 
			
		||||
            file.write("%s _Z3_UNUSED Z3ARG%s; " % (param2str(p), i))
 | 
			
		||||
        i = i + 1
 | 
			
		||||
    file.write("if (_LOG_CTX.enabled()) { log_%s(" % name)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue