From e99ef2cadef20ab7f2e63bdcf536bb9de0a9bfa4 Mon Sep 17 00:00:00 2001 From: Robert Adam Date: Sun, 15 May 2022 18:27:40 +0200 Subject: [PATCH] REFAC(macos,overlay): Remove unused symbol The cgl symbol was resolved but never used, which triggered a warning in our macOS CI. --- overlay_gl/init_mac.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/overlay_gl/init_mac.c b/overlay_gl/init_mac.c index 787653794..fa842e869 100644 --- a/overlay_gl/init_mac.c +++ b/overlay_gl/init_mac.c @@ -124,9 +124,8 @@ __attribute__((constructor)) static void initializeLibrary() { ods("!"); - void *nsgl = NULL, *cgl = NULL; - nsgl = dlsym(RTLD_DEFAULT, "NSClassFromString"); - cgl = dlsym(RTLD_DEFAULT, "CGLFlushDrawable"); + void *nsgl = NULL; + nsgl = dlsym(RTLD_DEFAULT, "NSClassFromString"); /* Check for GL symbol availability */ if (!(AVAIL_ALL_GLSYM)) {