mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Fix warnings with HP's C compiler. It doesn't recognize that infinite
loops are, um, infinite. These conditions should not be able to happen. Will backport.
This commit is contained in:
		
							parent
							
								
									837ce9389e
								
							
						
					
					
						commit
						a5ccda95f2
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -307,6 +307,8 @@ lookdict(dictobject *mp, PyObject *key, register long hash)
 | 
			
		|||
		else if (ep->me_key == dummy && freeslot == NULL)
 | 
			
		||||
			freeslot = ep;
 | 
			
		||||
	}
 | 
			
		||||
	assert(0);	/* NOT REACHED */
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
| 
						 | 
				
			
			@ -366,6 +368,8 @@ lookdict_string(dictobject *mp, PyObject *key, register long hash)
 | 
			
		|||
		if (ep->me_key == dummy && freeslot == NULL)
 | 
			
		||||
			freeslot = ep;
 | 
			
		||||
	}
 | 
			
		||||
	assert(0);	/* NOT REACHED */
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -179,6 +179,8 @@ set_lookkey_string(PySetObject *so, PyObject *key, register long hash)
 | 
			
		|||
		if (entry->key == dummy && freeslot == NULL)
 | 
			
		||||
			freeslot = entry;
 | 
			
		||||
	}
 | 
			
		||||
	assert(0);	/* NOT REACHED */
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue