From 715ab0f6e3faee421767627a8efbf6a93fe607cc Mon Sep 17 00:00:00 2001 From: Martin Fouilleul Date: Tue, 19 Sep 2023 09:24:23 +0200 Subject: [PATCH] put mtl renderer constants in an enum to silence -Wgnu-folding-constant warnings --- src/graphics/mtl_renderer.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/graphics/mtl_renderer.m b/src/graphics/mtl_renderer.m index fd75ba8..fce53c7 100644 --- a/src/graphics/mtl_renderer.m +++ b/src/graphics/mtl_renderer.m @@ -15,9 +15,12 @@ #include "mtl_renderer.h" -const int OC_MTL_INPUT_BUFFERS_COUNT = 3, - OC_MTL_TILE_SIZE = 16, - OC_MTL_MSAA_COUNT = 8; +enum +{ + OC_MTL_INPUT_BUFFERS_COUNT = 3, + OC_MTL_TILE_SIZE = 16, + OC_MTL_MSAA_COUNT = 8 +}; typedef struct oc_mtl_canvas_backend {