aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cru/common/logger.hpp2
-rw-r--r--include/cru/ui/render/flex_layout_render_object.hpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/include/cru/common/logger.hpp b/include/cru/common/logger.hpp
index 61d97422..35b16940 100644
--- a/include/cru/common/logger.hpp
+++ b/include/cru/common/logger.hpp
@@ -91,6 +91,8 @@ void Debug(const std::string_view& format, TArgs&&... args) {
#ifdef CRU_DEBUG
Logger::GetInstance()->Log(
LogLevel::Debug, util::Format(format, std::forward<TArgs>(args)...));
+#else
+ CRU_UNUSED(format)
#endif
}
diff --git a/include/cru/ui/render/flex_layout_render_object.hpp b/include/cru/ui/render/flex_layout_render_object.hpp
index 5a8d09ba..ab6265d6 100644
--- a/include/cru/ui/render/flex_layout_render_object.hpp
+++ b/include/cru/ui/render/flex_layout_render_object.hpp
@@ -68,12 +68,12 @@ class FlexLayoutRenderObject : public RenderObject {
}
FlexChildLayoutData GetChildLayoutData(int position) {
- assert(position >= 0 && position < child_layout_data_.size());
+ assert(position >= 0 && position < static_cast<int>(child_layout_data_.size()));
return child_layout_data_[position];
}
void SetChildLayoutData(int position, const FlexChildLayoutData& data) {
- assert(position >= 0 && position < child_layout_data_.size());
+ assert(position >= 0 && position < static_cast<int>(child_layout_data_.size()));
child_layout_data_[position] = data;
InvalidateLayout();
}