From 561a3ebade491df314b319fc20b01b399af30527 Mon Sep 17 00:00:00 2001 From: Arthur O'Dwyer Date: Sat, 22 Feb 2020 22:03:32 -0500 Subject: [PATCH] Silence a pedantic GCC warning by adding reinterpret_cast. 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`. --- glhr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glhr.cpp b/glhr.cpp index e23d454f..7fa5e7b8 100644 --- a/glhr.cpp +++ b/glhr.cpp @@ -625,7 +625,7 @@ void init() { printf("Failed to initialize GLEW\n"); return; } - printf("CreateProgram = %p\n", __glewCreateProgram); + printf("CreateProgram = %p\n", reinterpret_cast(__glewCreateProgram)); if(!__glewCreateProgram) noshaders = true; } #endif