diff --git a/selfdrive/ui/paint.cc b/selfdrive/ui/paint.cc index a58425748f..d0b0425e8c 100644 --- a/selfdrive/ui/paint.cc +++ b/selfdrive/ui/paint.cc @@ -154,7 +154,6 @@ static void update_track_data(UIState *s, bool is_mpc, track_vertices_data *pvd) const float *mpc_x_coords = &scene->mpc_x[0]; const float *mpc_y_coords = &scene->mpc_y[0]; - bool started = false; float off = is_mpc?0.3:0.5; float lead_d = scene->lead_data[0].getDRel()*2.; float path_height = is_mpc?(lead_d>5.)?fmin(lead_d, 25.)-fmin(lead_d*0.35, 10.):20. @@ -325,7 +324,6 @@ static void update_all_lane_lines_data(UIState *s, const PathData &path, model_p static void ui_draw_lane(UIState *s, const PathData *path, model_path_vertices_data *pstart, NVGcolor color) { ui_draw_lane_line(s, pstart, color); - float var = fmin(path->std, 0.7); color.a /= 25; ui_draw_lane_line(s, pstart + 1, color); ui_draw_lane_line(s, pstart + 2, color); diff --git a/selfdrive/ui/sidebar.cc b/selfdrive/ui/sidebar.cc index 890ea7e7ac..f4cb4f515b 100644 --- a/selfdrive/ui/sidebar.cc +++ b/selfdrive/ui/sidebar.cc @@ -63,7 +63,6 @@ static void ui_draw_sidebar_network_type(UIState *s) { const int network_x = !s->scene.uilayout_sidebarcollapsed ? 50 : -(sbr_w); const int network_y = 273; const int network_w = 100; - const int network_h = 100; const char *network_type = network_type_map[s->scene.thermal.getNetworkType()]; nvgFillColor(s->vg, COLOR_WHITE); nvgFontSize(s->vg, 48); diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index 32c1543e5a..1e39a9fab6 100644 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -115,7 +115,7 @@ static void handle_sidebar_touch(UIState *s, int touch_x, int touch_y) { } static void handle_driver_view_touch(UIState *s, int touch_x, int touch_y) { - int err = write_db_value("IsDriverViewEnabled", "0", 1); + write_db_value("IsDriverViewEnabled", "0", 1); } static void handle_vision_touch(UIState *s, int touch_x, int touch_y) { @@ -633,7 +633,6 @@ static int vision_subscribe(int fd, VisionPacket *rp, VisionStreamType type) { } static void* vision_connect_thread(void *args) { - int err; set_thread_name("vision_connect"); UIState *s = (UIState*)args;