shill: enable (don't disable) -Wunused

having fixed an unused parameter in the dbus-c++ headers, those
headers no longer have unused parameters. so, if we fix up unused
parameters in shill code, we can compile with -Wunused. (this is
implied by -Wall, as long as we don't override with -Wno-unused.)

BUG=chromium-os:20779
TEST=unittests

- comment out unused parameters in function definitions
- remove some unused local variables
- also: fix an old-style cast

Change-Id: Ie654a7b34d622cecb0f26bd47c17813fe8423001
Reviewed-on: http://gerrit.chromium.org/gerrit/8365
Tested-by: mukesh agrawal <quiche@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
diff --git a/dhcpcd_proxy.cc b/dhcpcd_proxy.cc
index f1483e8..a5a7c1f 100644
--- a/dhcpcd_proxy.cc
+++ b/dhcpcd_proxy.cc
@@ -93,14 +93,15 @@
 
 DHCPCDProxy::Proxy::~Proxy() {}
 
-void DHCPCDProxy::Proxy::Event(const uint32_t &pid,
-                               const std::string &reason,
-                               const DHCPConfig::Configuration &configuration) {
+void DHCPCDProxy::Proxy::Event(
+    const uint32_t &/*pid*/,
+    const std::string &/*reason*/,
+    const DHCPConfig::Configuration &/*configuration*/) {
   NOTREACHED();
 }
 
-void DHCPCDProxy::Proxy::StatusChanged(const uint32_t &pid,
-                                       const std::string &status) {
+void DHCPCDProxy::Proxy::StatusChanged(const uint32_t &/*pid*/,
+                                       const std::string &/*status*/) {
   NOTREACHED();
 }