This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 7d91d1b  Fixed warnings on unused variables for Clang 6
7d91d1b is described below

commit 7d91d1bbbaf009a66c78718d9f4a6249bdd86296
Author: Bryan Call <bc...@apache.org>
AuthorDate: Fri Apr 6 16:40:13 2018 -0700

    Fixed warnings on unused variables for Clang 6
---
 cmd/traffic_cache_tool/CacheDefs.cc | 2 --
 lib/ts/BufferWriterFormat.cc        | 5 ++---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/cmd/traffic_cache_tool/CacheDefs.cc 
b/cmd/traffic_cache_tool/CacheDefs.cc
index 38eebea..3b2c670 100644
--- a/cmd/traffic_cache_tool/CacheDefs.cc
+++ b/cmd/traffic_cache_tool/CacheDefs.cc
@@ -104,8 +104,6 @@ URLparser::getPort(std::string &fullURL, int &port_ptr, int 
&port_len)
   }
   if (u_pos != -1) {
     fullURL.insert(u_pos, ":@");
-    static const TextView HTTP("http");
-    static const TextView HTTPS("https");
     TextView url(fullURL.data(), (int)fullURL.size());
 
     url += 9;
diff --git a/lib/ts/BufferWriterFormat.cc b/lib/ts/BufferWriterFormat.cc
index 7c02beb..8e3c56d 100644
--- a/lib/ts/BufferWriterFormat.cc
+++ b/lib/ts/BufferWriterFormat.cc
@@ -334,9 +334,8 @@ namespace bw_fmt
   BufferWriter &
   Format_Integer(BufferWriter &w, BWFSpec const &spec, uintmax_t i, bool neg_p)
   {
-    size_t n  = 0;
-    int width = static_cast<int>(spec._min); // amount left to fill.
-    string_view prefix;
+    size_t n     = 0;
+    int width    = static_cast<int>(spec._min); // amount left to fill.
     char neg     = 0;
     char prefix1 = spec._radix_lead_p ? '0' : 0;
     char prefix2 = 0;

-- 
To stop receiving notification emails like this one, please contact
bc...@apache.org.

Reply via email to