Warning fixes

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2022-06-13 01:28:14 +02:00 committed by Viktor Govako
parent d7c000d18a
commit a3028ada75
2 changed files with 2 additions and 4 deletions

View file

@ -21,9 +21,7 @@ omim_add_library(${PROJECT_NAME} ${SRC})
target_include_directories(${PROJECT_NAME} INTERFACE .)
if (NOT PLATFORM_ANDROID)
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-deprecated-copy)
endif()
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-deprecated-copy)
omim_add_test_subdirectory(opening_hours_tests)
omim_add_test_subdirectory(opening_hours_integration_tests)

View file

@ -75,7 +75,7 @@ VehicleModel::VehicleModel(Classificator const & classif, LimitsInitList const &
ASSERT_LESS_OR_EQUAL(speedFactor.m_eta, 1.0, ());
ASSERT_GREATER(speedFactor.m_weight, 0.0, ());
ASSERT_GREATER(speedFactor.m_eta, 0.0, ());
m_surfaceFactors.Insert(classif.GetTypeByPath(v.m_type), v.m_factor);
m_surfaceFactors.Insert(classif.GetTypeByPath(v.m_type), speedFactor);
}
}