Commit ce60aa6
committed
Work-around for -Wcast-function-type warning from GetProcAddress()
Apparently, the way to silence this warning is to cast the value returned
by GetProcAddress() to a void function pointer, _then_ cast it to the type
we actually want. Hat tipped to GPUOpen-Tools/volk@8219a21189 .1 parent e9ddc8c commit ce60aa6
2 files changed
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
| 92 | + | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
379 | 384 | | |
380 | 385 | | |
381 | 386 | | |
| |||
479 | 484 | | |
480 | 485 | | |
481 | 486 | | |
482 | | - | |
| 487 | + | |
483 | 488 | | |
484 | 489 | | |
485 | | - | |
| 490 | + | |
486 | 491 | | |
487 | 492 | | |
488 | 493 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2080 | 2080 | | |
2081 | 2081 | | |
2082 | 2082 | | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
2083 | 2088 | | |
2084 | 2089 | | |
2085 | 2090 | | |
| |||
2093 | 2098 | | |
2094 | 2099 | | |
2095 | 2100 | | |
| 2101 | + | |
| 2102 | + | |
2096 | 2103 | | |
2097 | 2104 | | |
2098 | 2105 | | |
| |||
2105 | 2112 | | |
2106 | 2113 | | |
2107 | 2114 | | |
2108 | | - | |
2109 | | - | |
| 2115 | + | |
| 2116 | + | |
2110 | 2117 | | |
2111 | 2118 | | |
2112 | 2119 | | |
| |||
0 commit comments