This is an automated email from the ASF dual-hosted git repository.
briang pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 656acaf TS-4365: Fixing two remaining clang-analyzer warnings
656acaf is described below
commit 656acafdd61bfe0df550bb50d608341f28a60eca
Author: Brian Geffon <[email protected]>
AuthorDate: Wed Apr 20 22:38:04 2016 -0700
TS-4365: Fixing two remaining clang-analyzer warnings
---
lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc | 5 ++---
.../examples/async_http_fetch_streaming/AsyncHttpFetchStreaming.cc | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc
b/lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc
index 7cd8e63..b027a73 100644
--- a/lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc
+++ b/lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc
@@ -98,9 +98,7 @@ public:
{
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");
-
- (void)post_request;
+ post_request_ = new AsyncHttpFetch("http://127.0.0.1/post", "data");
Async::execute<AsyncHttpFetch>(this, new
AsyncHttpFetch("http://127.0.0.1/post", "data"), getMutex());
++num_fetches_pending_;
@@ -161,6 +159,7 @@ public:
private:
Transaction &transaction_;
int num_fetches_pending_;
+ AsyncHttpFetch *post_request_;
void
handleAnyAsyncComplete(AsyncHttpFetch &async_http_fetch)
diff --git
a/lib/atscppapi/examples/async_http_fetch_streaming/AsyncHttpFetchStreaming.cc
b/lib/atscppapi/examples/async_http_fetch_streaming/AsyncHttpFetchStreaming.cc
index 350a98b..488270d 100644
---
a/lib/atscppapi/examples/async_http_fetch_streaming/AsyncHttpFetchStreaming.cc
+++
b/lib/atscppapi/examples/async_http_fetch_streaming/AsyncHttpFetchStreaming.cc
@@ -80,7 +80,7 @@ void
TSPluginInit(int /* argc ATS_UNUSED */, const char * /* argv ATS_UNUSED */ [])
{
RegisterGlobalPlugin("CPP_Example_AsyncHttpFetchStreaming", "apache",
"[email protected]");
- new InterceptInstaller();
+ plugin = new InterceptInstaller();
}
void
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].