mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749)
Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code.
This commit is contained in:
		
							parent
							
								
									81524022d0
								
							
						
					
					
						commit
						62be74290a
					
				
					 38 changed files with 174 additions and 174 deletions
				
			
		| 
						 | 
				
			
			@ -245,12 +245,12 @@ static void converters_init(PyObject* dict)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
static PyMethodDef module_methods[] = {
 | 
			
		||||
    {"connect",  (PyCFunction)module_connect,
 | 
			
		||||
    {"connect",  (PyCFunction)(void(*)(void))module_connect,
 | 
			
		||||
     METH_VARARGS | METH_KEYWORDS, module_connect_doc},
 | 
			
		||||
    {"complete_statement",  (PyCFunction)module_complete,
 | 
			
		||||
    {"complete_statement",  (PyCFunction)(void(*)(void))module_complete,
 | 
			
		||||
     METH_VARARGS | METH_KEYWORDS, module_complete_doc},
 | 
			
		||||
#ifdef HAVE_SHARED_CACHE
 | 
			
		||||
    {"enable_shared_cache",  (PyCFunction)module_enable_shared_cache,
 | 
			
		||||
    {"enable_shared_cache",  (PyCFunction)(void(*)(void))module_enable_shared_cache,
 | 
			
		||||
     METH_VARARGS | METH_KEYWORDS, module_enable_shared_cache_doc},
 | 
			
		||||
#endif
 | 
			
		||||
    {"register_adapter", (PyCFunction)module_register_adapter,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue