From f61d3fa55a5b79d34a249b679b8d939cd534b268 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 23 May 2022 15:41:42 -0700 Subject: [PATCH] clean up --- SConstruct | 2 +- selfdrive/ui/qt/maps/map.cc | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index c6fefc7598..d9d05f7940 100644 --- a/SConstruct +++ b/SConstruct @@ -165,8 +165,8 @@ env = Environment( "-g", "-fPIC", "-O2", - "-Werror", "-Wunused", + "-Werror", "-Wshadow", "-Wno-unknown-warning-option", "-Wno-deprecated-register", diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index 49428e4114..c3bb8d9df1 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -230,10 +230,8 @@ void MapWindow::initializeGL() { } void MapWindow::paintGL() { - double t = millis_since_boot(); if (!isVisible() || m_map.isNull()) return; m_map->render(); - double e = millis_since_boot() - t; } void MapWindow::clearRoute() {