diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2018-10-27 19:34:56 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-10-29 12:51:44 +0300 |
commit | 0af9ae3335669fc0cf481fdb9b220ccc2ee006a1 (patch) | |
tree | bbe9071b1a022b10a8a19e95157dc849e4f947df /local_ads | |
parent | f8564cfe4e746ac147bcd68ed39d085d7f70dc4f (diff) |
Local ads release build warning fix.
Diffstat (limited to 'local_ads')
-rw-r--r-- | local_ads/campaign_serialization.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/local_ads/campaign_serialization.cpp b/local_ads/campaign_serialization.cpp index 041c2df97a..9d40873bfb 100644 --- a/local_ads/campaign_serialization.cpp +++ b/local_ads/campaign_serialization.cpp @@ -93,6 +93,10 @@ uint8_t ZoomValue(uint8_t zoomIndex) { return zoomIndex + kMinZoomLevel; } uint8_t PackZoomAndPriority(uint8_t minZoomLevel, uint8_t priority) { + UNUSED_VALUE(kMaxZoomLevel); + UNUSED_VALUE(kMaxPriority); + UNUSED_VALUE(kHalfByteMaxValue); + ASSERT_GREATER_OR_EQUAL(minZoomLevel, kMinZoomLevel, ("Unsupported zoom level")); ASSERT_LESS_OR_EQUAL(minZoomLevel, kMaxZoomLevel, ("Unsupported zoom level")); ASSERT_LESS_OR_EQUAL(priority, kMaxPriority, ("Unsupported priority value")); @@ -135,6 +139,9 @@ std::vector<uint8_t> SerializeV2(std::vector<Campaign> const & campaigns) std::vector<Campaign> DeserializeV2(std::vector<uint8_t> const & bytes) { + UNUSED_VALUE(kMaxZoomLevel); + UNUSED_VALUE(kMaxPriority); + ReaderSource<MemReaderWithExceptions> src({bytes.data(), bytes.size()}); CHECK_EQUAL(ReadPrimitiveFromSource<Version>(src), Version::V2, ()); |