From 62389aa4d517c0ab8e46a998059ece91612781e3 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Thu, 4 Aug 2022 22:39:56 +0000 Subject: [PATCH] Minor gcc warning fixes Signed-off-by: Alexander Borsuk --- qt/editor_dialog.cpp | 2 +- search/ranker.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qt/editor_dialog.cpp b/qt/editor_dialog.cpp index c6bff9e994..3b5bb9a34a 100644 --- a/qt/editor_dialog.cpp +++ b/qt/editor_dialog.cpp @@ -249,7 +249,7 @@ void EditorDialog::OnSave() case osm::Props::ContactTwitter: m_feature.SetTwitterPage(v); break; case osm::Props::ContactVk: m_feature.SetVkPage(v); break; case osm::Props::ContactLine: m_feature.SetLinePage(v); break; - case osm::Props::Internet: ASSERT(false, ("Is handled separately above.")); + case osm::Props::Internet: CHECK(false, ("Is handled separately above.")); case osm::Props::Cuisine: m_feature.SetCuisines(strings::Tokenize(v, ";")); break; diff --git a/search/ranker.cpp b/search/ranker.cpp index f37951fd8a..4e8da92369 100644 --- a/search/ranker.cpp +++ b/search/ranker.cpp @@ -631,8 +631,8 @@ private: if (info.IsNotEmpty() && info.m_name == m_ranker.m_params.m_pivotRegion) return base::Clamp(static_cast(rank * 1.7), 0, 0xFF); - // Fall through like "STATE" for cities without info. - } + // Fallthrough like "STATE" for cities without info. + } [[fallthrough]]; case Model::TYPE_STATE: return rank / 1.5; case Model::TYPE_COUNTRY: return rank;