mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Removed some unreachable break statements to silence SGI compiler.
This commit is contained in:
		
							parent
							
								
									38b88c233a
								
							
						
					
					
						commit
						2f38f81fec
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		|  | @ -3049,7 +3049,6 @@ fast_cfunction(PyObject *func, PyObject ***pp_stack, int na) | ||||||
| 			Py_DECREF(args); | 			Py_DECREF(args); | ||||||
| 			return result; | 			return result; | ||||||
| 		} | 		} | ||||||
| 		break; |  | ||||||
| 	case METH_NOARGS: | 	case METH_NOARGS: | ||||||
| 		if (na == 0) | 		if (na == 0) | ||||||
| 			return (*meth)(self, NULL); | 			return (*meth)(self, NULL); | ||||||
|  | @ -3057,7 +3056,6 @@ fast_cfunction(PyObject *func, PyObject ***pp_stack, int na) | ||||||
| 			     "%.200s() takes no arguments (%d given)", | 			     "%.200s() takes no arguments (%d given)", | ||||||
| 			     ((PyCFunctionObject*)func)->m_ml->ml_name, na); | 			     ((PyCFunctionObject*)func)->m_ml->ml_name, na); | ||||||
| 		return NULL; | 		return NULL; | ||||||
| 		break; |  | ||||||
| 	case METH_O: | 	case METH_O: | ||||||
| 		if (na == 1) { | 		if (na == 1) { | ||||||
| 			PyObject *arg = EXT_POP(*pp_stack); | 			PyObject *arg = EXT_POP(*pp_stack); | ||||||
|  | @ -3069,7 +3067,6 @@ fast_cfunction(PyObject *func, PyObject ***pp_stack, int na) | ||||||
| 			     "%.200s() takes exactly one argument (%d given)", | 			     "%.200s() takes exactly one argument (%d given)", | ||||||
| 			     ((PyCFunctionObject*)func)->m_ml->ml_name, na); | 			     ((PyCFunctionObject*)func)->m_ml->ml_name, na); | ||||||
| 		return NULL; | 		return NULL; | ||||||
| 		break; |  | ||||||
| 	default: | 	default: | ||||||
| 		fprintf(stderr, "%.200s() flags = %d\n",  | 		fprintf(stderr, "%.200s() flags = %d\n",  | ||||||
| 			((PyCFunctionObject*)func)->m_ml->ml_name, flags); | 			((PyCFunctionObject*)func)->m_ml->ml_name, flags); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sjoerd Mullender
						Sjoerd Mullender