summaryrefslogtreecommitdiff
path: root/server/RouteController.cpp
diff options
context:
space:
mode:
authorSreeram Ramachandran <sreeram@google.com>2014-05-28 15:07:00 -0700
committerSreeram Ramachandran <sreeram@google.com>2014-05-29 20:33:18 -0700
commit56afacf838d24cf8e54d2cf0d8ab9182ab704125 (patch)
tree905e375d2eae15018f3e05c45c30e0d299928452 /server/RouteController.cpp
parent38b7af1f2cb9579895465fabc37865f5dadcac25 (diff)
Turn on C++11 and make all warnings into errors.
As a consequence: + Comment out the names of all unused parameters. + Remove all unused variables and functions. In server/Android.mk, there are a couple of non-trivial changes: + Use libcxx instead of stlport. This is needed to fix a bunch of errors due to specifying -std=c++11. + LOCAL_SHARED_LIBRARIES is sorted. Technically, the order in which libraries are listed has an effect on linking, but nobody should be doing such brittle things anyway. Change-Id: I0aff5b745e04609da23144d0e8be4c5694321b8b
Diffstat (limited to 'server/RouteController.cpp')
-rw-r--r--server/RouteController.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/RouteController.cpp b/server/RouteController.cpp
index 36773d70..592dc351 100644
--- a/server/RouteController.cpp
+++ b/server/RouteController.cpp
@@ -32,7 +32,10 @@ const uint32_t RULE_PRIORITY_LEGACY = 16000;
const uint32_t RULE_PRIORITY_PER_NETWORK_NORMAL = 17000;
const uint32_t RULE_PRIORITY_DEFAULT_NETWORK = 19000;
const uint32_t RULE_PRIORITY_MAIN = 20000;
+// TODO: Uncomment once we are sure everything works.
+#if 0
const uint32_t RULE_PRIORITY_UNREACHABLE = 21000;
+#endif
// TODO: These should be turned into per-UID tables once the kernel supports UID-based routing.
const int ROUTE_TABLE_PRIVILEGED_LEGACY = RouteController::ROUTE_TABLE_OFFSET_FROM_INDEX - 901;