You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2014/03/13 18:06:42 UTC

git commit: Fix some more compiler warnings for build errors

Repository: trafficserver
Updated Branches:
  refs/heads/master f7c688d3b -> b7172b49f


Fix some more compiler warnings for build errors


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/b7172b49
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/b7172b49
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/b7172b49

Branch: refs/heads/master
Commit: b7172b49f955f2c41f8427ce3196b98f586df5b4
Parents: f7c688d
Author: Leif Hedstrom <zw...@apache.org>
Authored: Thu Mar 13 11:02:06 2014 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Thu Mar 13 11:06:32 2014 -0600

----------------------------------------------------------------------
 lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc | 6 +++---
 lib/atscppapi/examples/intercept/intercept.cc             | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b7172b49/lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc
----------------------------------------------------------------------
diff --git a/lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc b/lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc
index 6b7533c..0535786 100644
--- a/lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc
+++ b/lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc
@@ -52,7 +52,7 @@ public:
     registerHook(HOOK_SEND_REQUEST_HEADERS);
   }
 
-  void handleSendRequestHeaders(Transaction &transaction) {
+  void handleSendRequestHeaders(Transaction & /*transaction ATS_UNUSED */) {
     Async::execute<AsyncHttpFetch>(this, new AsyncHttpFetch("http://127.0.0.1/"), getMutex());
     ++num_fetches_pending_;
     AsyncHttpFetch *post_request = new AsyncHttpFetch("http://127.0.0.1/post", "data");
@@ -90,7 +90,7 @@ public:
     Async::execute<AsyncHttpFetch3>(this, new AsyncHttpFetch3("http://127.0.0.1/", HTTP_METHOD_POST), getMutex());
   }
 
-  void handleAsyncComplete(AsyncHttpFetch3 &async_http_fetch) {
+  void handleAsyncComplete(AsyncHttpFetch3 & /* async_http_fetch ATS_UNUSED */) {
     assert(!"AsyncHttpFetch3 shouldn't have completed!");
   }
 
@@ -112,7 +112,7 @@ private:
       const void *body;
       size_t body_size;
       async_http_fetch.getResponseBody(body, body_size);
-      TS_DEBUG(TAG, "Response body is [%.*s]", static_cast<int>(body_size), body);
+      TS_DEBUG(TAG, "Response body is [%.*s]", static_cast<int>(body_size), static_cast<const char*>(body));
     } else {
       TS_ERROR(TAG, "Fetch did not complete successfully; Result %d",
                static_cast<int>(async_http_fetch.getResult()));

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b7172b49/lib/atscppapi/examples/intercept/intercept.cc
----------------------------------------------------------------------
diff --git a/lib/atscppapi/examples/intercept/intercept.cc b/lib/atscppapi/examples/intercept/intercept.cc
index 4c98782..54133dd 100644
--- a/lib/atscppapi/examples/intercept/intercept.cc
+++ b/lib/atscppapi/examples/intercept/intercept.cc
@@ -29,7 +29,7 @@ public:
   }
 };
 
-void TSPluginInit(int argc, const char *argv[]) {
+void TSPluginInit(int /* argc ATS_UNUSED */, const char * /* argv ATS_UNUSED */ []) {
   new InterceptInstaller();
 }