trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject git commit: TS-2751: fix unused variable warnings
Date Fri, 16 May 2014 23:08:12 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 6af0d4ed8 -> 246d3ed6c


TS-2751: fix unused variable warnings


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

Branch: refs/heads/master
Commit: 246d3ed6cb46743c5b20c08593251ab20f90a906
Parents: 6af0d4e
Author: James Peach <jpeach@apache.org>
Authored: Fri May 16 16:08:08 2014 -0700
Committer: James Peach <jpeach@apache.org>
Committed: Fri May 16 16:08:08 2014 -0700

----------------------------------------------------------------------
 iocore/net/SSLNextProtocolAccept.cc | 2 +-
 lib/ts/ink_queue.cc                 | 4 ++--
 proxy/ProtocolProbeSessionAccept.cc | 2 +-
 proxy/spdy/SpdySessionAccept.cc     | 5 +++++
 4 files changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/246d3ed6/iocore/net/SSLNextProtocolAccept.cc
----------------------------------------------------------------------
diff --git a/iocore/net/SSLNextProtocolAccept.cc b/iocore/net/SSLNextProtocolAccept.cc
index 39528b7..5be2f77 100644
--- a/iocore/net/SSLNextProtocolAccept.cc
+++ b/iocore/net/SSLNextProtocolAccept.cc
@@ -138,7 +138,7 @@ SSLNextProtocolAccept::mainEvent(int event, void * edata)
 }
 
 void
-SSLNextProtocolAccept::accept(NetVConnection * netvc, MIOBuffer * iobuf, IOBufferReader*
read)
+SSLNextProtocolAccept::accept(NetVConnection *, MIOBuffer *, IOBufferReader *)
 {
   ink_release_assert(0);
 }

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/246d3ed6/lib/ts/ink_queue.cc
----------------------------------------------------------------------
diff --git a/lib/ts/ink_queue.cc b/lib/ts/ink_queue.cc
index a1798d2..3c28c5c 100644
--- a/lib/ts/ink_queue.cc
+++ b/lib/ts/ink_queue.cc
@@ -338,7 +338,7 @@ ink_freelists_dump_baselinerel(FILE * f)
     fll = fll->next;
   }
 #else // ! TS_USE_FREELIST
-  // TODO?
+  (void)f;
 #endif
 }
 
@@ -361,7 +361,7 @@ ink_freelists_dump(FILE * f)
     fll = fll->next;
   }
 #else // ! TS_USE_FREELIST
-  // TODO?
+  (void)f;
 #endif
 }
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/246d3ed6/proxy/ProtocolProbeSessionAccept.cc
----------------------------------------------------------------------
diff --git a/proxy/ProtocolProbeSessionAccept.cc b/proxy/ProtocolProbeSessionAccept.cc
index 33702d5..7296aa7 100644
--- a/proxy/ProtocolProbeSessionAccept.cc
+++ b/proxy/ProtocolProbeSessionAccept.cc
@@ -128,7 +128,7 @@ ProtocolProbeSessionAccept::mainEvent(int event, void *data)
 }
 
 void
-ProtocolProbeSessionAccept::accept(NetVConnection * netvc, MIOBuffer * iobuf, IOBufferReader*
read)
+ProtocolProbeSessionAccept::accept(NetVConnection *, MIOBuffer *, IOBufferReader *)
 {
   ink_release_assert(0);
 }

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/246d3ed6/proxy/spdy/SpdySessionAccept.cc
----------------------------------------------------------------------
diff --git a/proxy/spdy/SpdySessionAccept.cc b/proxy/spdy/SpdySessionAccept.cc
index 7014759..00fd024 100644
--- a/proxy/spdy/SpdySessionAccept.cc
+++ b/proxy/spdy/SpdySessionAccept.cc
@@ -62,5 +62,10 @@ SpdySessionAccept::accept(NetVConnection * netvc, MIOBuffer * iobuf, IOBufferRea
 {
 #if TS_HAS_SPDY
   spdy_sm_create(netvc, iobuf, reader);
+#else
+  (void)netvc;
+  (void)iobuf;
+  (void)reader;
+  ink_release_assert(0);
 #endif
 }


Mime
View raw message