mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	bpo-36594: Fix incorrect use of %p in format strings (GH-12769)
In addition, fix some other minor violations of C99.
This commit is contained in:
		
							parent
							
								
									ae2c32f32b
								
							
						
					
					
						commit
						1a2252ed39
					
				
					 11 changed files with 26 additions and 24 deletions
				
			
		|  | @ -1750,7 +1750,7 @@ _alloc_preinit_entry(const wchar_t *value) | |||
| 
 | ||||
|     PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); | ||||
|     return node; | ||||
| }; | ||||
| } | ||||
| 
 | ||||
| static int | ||||
| _append_preinit_entry(_Py_PreInitEntry *optionlist, const wchar_t *value) | ||||
|  | @ -1772,7 +1772,7 @@ _append_preinit_entry(_Py_PreInitEntry *optionlist, const wchar_t *value) | |||
|         last_entry->next = new_entry; | ||||
|     } | ||||
|     return 0; | ||||
| }; | ||||
| } | ||||
| 
 | ||||
| static void | ||||
| _clear_preinit_entries(_Py_PreInitEntry *optionlist) | ||||
|  | @ -1789,7 +1789,7 @@ _clear_preinit_entries(_Py_PreInitEntry *optionlist) | |||
|         current = next; | ||||
|     } | ||||
|     PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); | ||||
| }; | ||||
| } | ||||
| 
 | ||||
| static void | ||||
| _clear_all_preinit_options(void) | ||||
|  | @ -1820,7 +1820,7 @@ _PySys_ReadPreInitOptions(void) | |||
| 
 | ||||
|     _clear_all_preinit_options(); | ||||
|     return 0; | ||||
| }; | ||||
| } | ||||
| 
 | ||||
| static PyObject * | ||||
| get_warnoptions(void) | ||||
|  |  | |||
|  | @ -339,7 +339,7 @@ PyThread_allocate_lock(void) | |||
|         } | ||||
|     } | ||||
| 
 | ||||
|     dprintf(("PyThread_allocate_lock() -> %p\n", lock)); | ||||
|     dprintf(("PyThread_allocate_lock() -> %p\n", (void *)lock)); | ||||
|     return (PyThread_type_lock)lock; | ||||
| } | ||||
| 
 | ||||
|  | @ -521,7 +521,7 @@ PyThread_allocate_lock(void) | |||
|         } | ||||
|     } | ||||
| 
 | ||||
|     dprintf(("PyThread_allocate_lock() -> %p\n", lock)); | ||||
|     dprintf(("PyThread_allocate_lock() -> %p\n", (void *)lock)); | ||||
|     return (PyThread_type_lock) lock; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Zackery Spytz
						Zackery Spytz