From 61f9b3e653b08900e6a5011320f383efbe443c14 Mon Sep 17 00:00:00 2001 From: Jason Shuler Date: Wed, 17 Nov 2021 12:59:36 -0500 Subject: [PATCH] Fix build failures in Ubuntu 21.10 (#22952) * Fix compile on Ubuntu 21.10 * Add missing c++17 optional refs in ui --- SConstruct | 1 + selfdrive/ui/navd/route_engine.h | 2 ++ selfdrive/ui/ui.h | 1 + 3 files changed, 4 insertions(+) diff --git a/SConstruct b/SConstruct index 73c66690ade338..67acd3eac4637f 100644 --- a/SConstruct +++ b/SConstruct @@ -189,6 +189,7 @@ env = Environment( "-Wno-inconsistent-missing-override", "-Wno-c99-designator", "-Wno-reorder-init-list", + "-Wno-error=unused-but-set-variable", ] + cflags + ccflags, CPPPATH=cpppath + [ diff --git a/selfdrive/ui/navd/route_engine.h b/selfdrive/ui/navd/route_engine.h index 5b8de698a96bb3..9a6c99041732aa 100644 --- a/selfdrive/ui/navd/route_engine.h +++ b/selfdrive/ui/navd/route_engine.h @@ -1,5 +1,7 @@ #pragma once +#include + #include #include #include diff --git a/selfdrive/ui/ui.h b/selfdrive/ui/ui.h index ad754b550b995a..46cbae63fb035d 100644 --- a/selfdrive/ui/ui.h +++ b/selfdrive/ui/ui.h @@ -3,6 +3,7 @@ #include #include #include +#include #include #include