Skip to content

Commit

Permalink
Fix build failures in Ubuntu 21.10 (#22952)
Browse files Browse the repository at this point in the history
* Fix compile on Ubuntu 21.10

* Add missing c++17 optional refs in ui
  • Loading branch information
JMPZ11 authored Nov 17, 2021
1 parent f1c77f9 commit 61f9b3e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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 + [
Expand Down
2 changes: 2 additions & 0 deletions selfdrive/ui/navd/route_engine.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <optional>

#include <QThread>
#include <QGeoCoordinate>
#include <QGeoManeuver>
Expand Down
1 change: 1 addition & 0 deletions selfdrive/ui/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <map>
#include <memory>
#include <string>
#include <optional>

#include <QObject>
#include <QTimer>
Expand Down

0 comments on commit 61f9b3e

Please sign in to comment.