mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Try to avoid many of the compiler warnings when compiling libffi by
using a proper function prototype.
This commit is contained in:
		
							parent
							
								
									ab906a562b
								
							
						
					
					
						commit
						915d7773e2
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -188,7 +188,7 @@ typedef union {
 | 
				
			||||||
} ffi_raw;
 | 
					} ffi_raw;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void ffi_raw_call (/*@dependent@*/ ffi_cif *cif, 
 | 
					void ffi_raw_call (/*@dependent@*/ ffi_cif *cif, 
 | 
				
			||||||
		   void (*fn)(), 
 | 
							   void (*fn)(void), 
 | 
				
			||||||
		   /*@out@*/ void *rvalue, 
 | 
							   /*@out@*/ void *rvalue, 
 | 
				
			||||||
		   /*@dependent@*/ ffi_raw *avalue);
 | 
							   /*@dependent@*/ ffi_raw *avalue);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -201,7 +201,7 @@ size_t ffi_raw_size (ffi_cif *cif);
 | 
				
			||||||
/* longs and doubles are followed by an empty 64-bit word.		*/
 | 
					/* longs and doubles are followed by an empty 64-bit word.		*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void ffi_java_raw_call (/*@dependent@*/ ffi_cif *cif, 
 | 
					void ffi_java_raw_call (/*@dependent@*/ ffi_cif *cif, 
 | 
				
			||||||
		        void (*fn)(), 
 | 
							        void (*fn)(void), 
 | 
				
			||||||
		        /*@out@*/ void *rvalue, 
 | 
							        /*@out@*/ void *rvalue, 
 | 
				
			||||||
		        /*@dependent@*/ ffi_raw *avalue);
 | 
							        /*@dependent@*/ ffi_raw *avalue);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -270,7 +270,7 @@ ffi_status ffi_prep_cif(/*@out@*/ /*@partial@*/ ffi_cif *cif,
 | 
				
			||||||
			/*@dependent@*/ ffi_type **atypes);
 | 
								/*@dependent@*/ ffi_type **atypes);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void ffi_call(/*@dependent@*/ ffi_cif *cif, 
 | 
					void ffi_call(/*@dependent@*/ ffi_cif *cif, 
 | 
				
			||||||
	      void (*fn)(), 
 | 
						      void (*fn)(void), 
 | 
				
			||||||
	      /*@out@*/ void *rvalue, 
 | 
						      /*@out@*/ void *rvalue, 
 | 
				
			||||||
	      /*@dependent@*/ void **avalue);
 | 
						      /*@dependent@*/ void **avalue);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue