From 8eff87f2a3b2cc17405a45273f4b7118ea43e119 Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Sat, 22 Jul 2023 00:11:21 +0300 Subject: [PATCH] backend: glx: address some clang-tidy issues, run clang-format --- src/backend/gl/glx.c | 2 +- src/backend/gl/glx.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/gl/glx.c b/src/backend/gl/glx.c index d30dc9f..681bd17 100644 --- a/src/backend/gl/glx.c +++ b/src/backend/gl/glx.c @@ -615,7 +615,7 @@ void glxext_init(Display *dpy, int screen) { #endif #undef check_ext -#define lookup(name) (name = (__typeof__(name))glXGetProcAddress((GLubyte *)#name)) +#define lookup(name) ((name) = (__typeof__(name))glXGetProcAddress((GLubyte *)#name)) // Checking if the returned function pointer is NULL is not really necessary, // or maybe not even useful, since glXGetProcAddress might always return // something. We are doing it just for completeness' sake. diff --git a/src/backend/gl/glx.h b/src/backend/gl/glx.h index ce8702a..c7ff281 100644 --- a/src/backend/gl/glx.h +++ b/src/backend/gl/glx.h @@ -12,11 +12,11 @@ #undef glXBindTexImageEXT #undef glXReleaseTexImageEXT #include -#include #include +#include -#include "log.h" #include "compiler.h" +#include "log.h" #include "utils.h" #include "x.h"