Commit 8219a21
committed
Work around gcc-8 warning with GetProcAddress
On MinGW starting from gcc-8, casting FARPROC returned by GetProcAddress
produces the following warning:
cast between incompatible function types from 'FARPROC' {aka 'long long
int ()()'} to 'void ( (*)(struct VkInstance_T *, const char *))(void)'
This change works around it by casting through a void(*)(void) type,
which seems to be the idiomatic way to silence this.
Fixes zeux#19.1 parent c75222e commit 8219a21
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments