Silence a pedantic GCC warning by adding reinterpret_cast<void*>.
Here we're casting a function pointer to `void*`, which is not doable with our implicit-conversions-only `hr::voidp(x)` helper, and is not even doable with a `static_cast`; we must `reinterpret_cast`.
This commit is contained in:
parent
7a706478dc
commit
561a3ebade
2
glhr.cpp
2
glhr.cpp
|
@ -625,7 +625,7 @@ void init() {
|
||||||
printf("Failed to initialize GLEW\n");
|
printf("Failed to initialize GLEW\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
printf("CreateProgram = %p\n", __glewCreateProgram);
|
printf("CreateProgram = %p\n", reinterpret_cast<void*>(__glewCreateProgram));
|
||||||
if(!__glewCreateProgram) noshaders = true;
|
if(!__glewCreateProgram) noshaders = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue