Skip to content

Commit 3152a6f

Browse files
Fixed unused variable warning when CORE_DEBUG_LEVEL == 0 (#85)
1 parent 2182737 commit 3152a6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenStreetMap-esp32.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ bool OpenStreetMap::resizeTilesCache(uint16_t numberOfTiles)
211211

212212
void OpenStreetMap::updateCache(const tileList &requiredTiles, uint8_t zoom)
213213
{
214-
const unsigned long startMS = millis();
214+
[[maybe_unused]] const unsigned long startMS = millis();
215215
std::vector<TileJob> jobs;
216216
makeJobList(requiredTiles, jobs, zoom);
217217
if (!jobs.empty())
@@ -502,7 +502,7 @@ void OpenStreetMap::tileFetcherTask(void *param)
502502
{
503503
TileJob job;
504504
xQueueReceive(osm->jobQueue, &job, portMAX_DELAY);
505-
const unsigned long startMS = millis();
505+
[[maybe_unused]] const unsigned long startMS = millis();
506506

507507
if (job.z == 255)
508508
break;

0 commit comments

Comments
 (0)