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() {