From 4072841c1739e107df9cd8f5aa9699b2ce37a0b4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 23 Dec 2020 12:56:04 +0100 Subject: [PATCH] Silence warning 'unused function' --- retroarch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/retroarch.c b/retroarch.c index 57f0cdd267..3574c1a252 100644 --- a/retroarch.c +++ b/retroarch.c @@ -16380,6 +16380,7 @@ static bool hw_render_context_is_glcore(enum retro_hw_context_type type) } #endif +#if defined(HAVE_VULKAN) || defined(HAVE_D3D11) || defined(HAVE_D3D9) || defined(HAVE_OPENGL_CORE) static video_driver_t *hw_render_context_driver(enum retro_hw_context_type type, int major, int minor) { switch (type) @@ -16419,6 +16420,7 @@ static video_driver_t *hw_render_context_driver(enum retro_hw_context_type type, return NULL; } +#endif static enum retro_hw_context_type hw_render_context_type(const char *s) {