From f5ff480fc4a8cf762aeb64b5aba6b0d64ade6845 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 2 Dec 2021 17:40:45 +0100 Subject: [PATCH] Fixed a GCC compiler warning. --- es-core/src/components/DateTimeEditComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/DateTimeEditComponent.cpp b/es-core/src/components/DateTimeEditComponent.cpp index bba51100a..678498bfd 100644 --- a/es-core/src/components/DateTimeEditComponent.cpp +++ b/es-core/src/components/DateTimeEditComponent.cpp @@ -170,7 +170,7 @@ void DateTimeEditComponent::render(const glm::mat4& parentTrans) if (mTextCache) { std::shared_ptr font = getFont(); - float referenceSize; + float referenceSize{0.0f}; if (mAlignRight) referenceSize = std::round(mParent->getSize().x * 0.1045f);