summaryrefslogtreecommitdiff
path: root/server/TetherController.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/TetherController.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/TetherController.cpp')
-rw-r--r--server/TetherController.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/server/TetherController.cpp b/server/TetherController.cpp
index 32a0b435..93110e0d 100644
--- a/server/TetherController.cpp
+++ b/server/TetherController.cpp
@@ -242,7 +242,6 @@ NetAddressCollection *TetherController::getDnsForwarders() {
}
int TetherController::applyDnsInterfaces() {
- int i;
char daemonCmd[MAX_CMD_SIZE];
strcpy(daemonCmd, "update_ifaces");