Suppress spurious warning from clangd

This commit is contained in:
Kovid Goyal 2024-03-30 11:37:01 +05:30
parent ce035361e8
commit 7796c15248
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

2
glfw/internal.h vendored
View file

@ -209,7 +209,7 @@ typedef void (APIENTRY * PFN_vkVoidFunction)(void);
#define remove_i_from_array(array, i, count) { \
(count)--; \
if ((i) < (count)) { \
memmove((array) + (i), (array) + (i) + 1, sizeof((array)[0]) * ((count) - (i))); \
memmove((array) + (i), (array) + (i) + 1, sizeof((array)[0]) * ((count) - (i))); /* NOLINT(bugprone-sizeof-expression) */ \
}}