Commit 8cb5cc3
authored
Fix MSVC extension warnings in
The implicit function-to-object pointer conversions triggered Clang's
"-Wmicrosoft-cast" warning. Let's use the alias to a generic
function-pointer type ("void (*)()") and "reinterpret_cast" at the two
boundaries that produce specific function-pointer types.
WinAPITestHelper is used only for unit tests, so there must be no
risk in the production code.
PiperOrigin-RevId: 906750097WinAPITestHelper (#1492)1 parent b021114 commit 8cb5cc3
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
0 commit comments