Drawable Renderer (#1570), warnings

This commit is contained in:
Tim Sylvester
2023-06-05 12:13:38 -07:00
committed by Bart Louwers
parent d7e00ff1c4
commit 326f669568
2 changed files with 4 additions and 2 deletions

View File

@@ -45,7 +45,9 @@ struct alignas(16) BackgroundPatternLayerUBO {
};
static_assert(sizeof(BackgroundPatternLayerUBO) == 96);
#if !defined(NDEBUG)
static constexpr std::string_view BackgroundPatternShaderName = "BackgroundPatternShader";
#endif
static constexpr std::string_view BackgroundDrawableUBOName = "BackgroundDrawableUBO";
static constexpr std::string_view BackgroundLayerUBOName = "BackgroundLayerUBO";

View File

@@ -100,8 +100,8 @@ void FillLayerTweaker::execute(LayerGroup& layerGroup,
Faded<style::expression::Image> pattern = *fillPatternProperty.constant();
const auto& patternFrom = pattern.from;
const auto& patternTo = pattern.to;
__unused const auto& idFrom = patternFrom.id();
__unused const auto& idTo = patternTo.id();
[[maybe_unused]] const auto& idFrom = patternFrom.id();
[[maybe_unused]] const auto& idTo = patternTo.id();
}
const auto& translation = evaluated.get<FillTranslate>();