<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/136562>136562</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
compiler printf format warning doesn't really need to happen
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
d3x0r
</td>
</tr>
</table>
<pre>
Compiled as C++...
``` c++
uintptr psvNew = 0;
printf( "Socket is not a server socket %p", psvNew );
```
``` log
warning: format ‘%p’ expects argument of type ‘void*’, but argument 2 has type ‘uintptr_t {aka long unsigned int}’ [-Wformat=]
printf( "Socket is not a server socket %p", psvNew );
```
This should never actually be an issue. [u]intptr is defined as a integer type large enough to hold a pointer. It should always take the same amount of space as a pointer, and a pointer can round-trip to and from the type without issue.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0U0mP6zYM_jX0hRjDka0sBx-SSQP00ksL9FjQEmOrI0uGluTNvy-8vMmg9wcICGLq20iKYjS9Y25BXkBeC8pp8KHV9Y8qFJ3Xn-27HydjWSNFfAdxAXEpyxKq83z21XpQrRWozoiYjUtTCjjFxx_8RKivWEG9FadgXLqDOCII8adXH5zQRHQ-IWHk8OCAcf0MQk4gBIj3LypxWom-lDcj371Y389STwrOuB7qM959GCkh_CbgWMHpuBBvf07IPyZWKSKFPo_sEvo7ps-JX_cf3mgQ5y_I7KjL6YUQOFD8H2jrwj8J4XChD0LrXY_ZLQ3XaFyCw_XlAuTl7e_VKNRXkNdf2K6_BhMxDj5bjY5nClIpk7Wf2DGSQxNj5hJnUxnkdZuniaj5bty6DDRH4J7DmttS6BnZ-dwPmDwO3moknPx8K5SI-Hv6qUn2SZ8RE30wpoEx0shIo89r8-NEileJDT5nIveNDxU5DD47_ZaCmWbBuX4PflwYF0tPkwaf0yvNEr7Qba1P9YkKbneHRop63zSyGNrTSZ7oToKoZrHvjrpRXO-OqlF6f1cHWZhWVEJWjdjtdrKpZMmyE0oeD1qpe3c87KGpeCRjS2sfY-lDXyzS7a7ey70oLHVs4_LUhHD8XI3NI5PXIrQz6K3LfYSmsiam-KJJJllu1foUw7YUP9d6W3TUnqMDcUgYeJmlY9bLKGia2BU52HZIaYpQn0HcQNx6k4bclcqPIG6z2PbzNgX_L6sE4rZYjCBuW4ZHK_4LAAD__yoKUNY">