Commit a1a3f7b
Fix gcc-12 -Wmicrosoft-cast warning in trace_sink_impl
Explicitly convert function pointer to std::uintptr_t in write_pf() instead of
relying on implicit conversion through operator<<. This avoids the -Wmicrosoft-cast
warning while using the same reinterpret_cast approach that ostdstream.hpp already
uses for function pointer output.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a0e1c8a commit a1a3f7b
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
170 | 178 | | |
171 | 179 | | |
172 | 180 | | |
| |||
0 commit comments