internal: fix warnings

This commit is contained in:
vaxerski 2023-09-07 16:43:01 +02:00
parent 0be6b03ee9
commit 398e861b55
5 changed files with 6 additions and 7 deletions

View file

@ -298,7 +298,7 @@ static const struct wlr_gles2_pixel_format formats[] = {
#endif
};
static const struct wlr_gles2_pixel_format* get_gles2_format_from_drm(uint32_t fmt) {
inline const struct wlr_gles2_pixel_format* gles2FromDRM(uint32_t fmt) {
for (size_t i = 0; i < sizeof(formats) / sizeof(*formats); ++i) {
if (formats[i].drm_format == fmt) {
return &formats[i];