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 2013/04/20 19:00:19 UTC
git commit: TS-1820 More unused warnings
Updated Branches:
refs/heads/master da80e34b6 -> 351f63fdb
TS-1820 More unused warnings
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/351f63fd
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/351f63fd
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/351f63fd
Branch: refs/heads/master
Commit: 351f63fdbac9327225d002c824bf4093732e6b50
Parents: da80e34
Author: Leif Hedstrom <zw...@apache.org>
Authored: Sat Apr 20 11:00:05 2013 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Sat Apr 20 11:00:05 2013 -0600
----------------------------------------------------------------------
iocore/aio/test_AIO.cc | 6 +++---
iocore/eventsystem/test_Buffer.cc | 2 +-
iocore/eventsystem/test_Event.cc | 6 +++---
iocore/net/test_certlookup.cc | 4 ++--
lib/ts/List.h | 2 +-
lib/ts/test_Map.cc | 2 +-
lib/ts/test_Vec.cc | 2 +-
lib/ts/test_atomic.cc | 2 +-
lib/ts/test_freelist.cc | 2 +-
9 files changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/351f63fd/iocore/aio/test_AIO.cc
----------------------------------------------------------------------
diff --git a/iocore/aio/test_AIO.cc b/iocore/aio/test_AIO.cc
index 21b2b69..d3d8b65 100644
--- a/iocore/aio/test_AIO.cc
+++ b/iocore/aio/test_AIO.cc
@@ -296,7 +296,7 @@ dump_summary(void)
}
int
-AIO_Device::do_hotset(int event, Event * e)
+AIO_Device::do_hotset(int /* event ATS_UNUSED */, Event * /* e ATS_UNUSED */)
{
off_t max_offset = ((off_t) disk_size) * 1024 * 1024;
io->aiocb.aio_lio_opcode = LIO_WRITE;
@@ -324,7 +324,7 @@ AIO_Device::do_hotset(int event, Event * e)
}
int
-AIO_Device::do_fd(int event, Event * e)
+AIO_Device::do_fd(int /* event ATS_UNUSED */, Event * /* e ATS_UNUSED */)
{
if (!time_start) {
time_start = ink_get_hrtime();
@@ -473,7 +473,7 @@ read_config(const char *config_filename)
}
int
-main(int argc, char *argv[])
+main(int /* argc ATS_UNUSED */, char *argv[])
{
int i;
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/351f63fd/iocore/eventsystem/test_Buffer.cc
----------------------------------------------------------------------
diff --git a/iocore/eventsystem/test_Buffer.cc b/iocore/eventsystem/test_Buffer.cc
index 5638368..3331b8d 100644
--- a/iocore/eventsystem/test_Buffer.cc
+++ b/iocore/eventsystem/test_Buffer.cc
@@ -122,7 +122,7 @@ init_diags(const char *bdt, const char *bat)
}
int
-main(int argc, const char *argv[])
+main(int /* argc ATS_UNUSED */, const char */* argv ATS_UNUSED */[])
{
RecModeT mode_type = RECM_STAND_ALONE;
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/351f63fd/iocore/eventsystem/test_Event.cc
----------------------------------------------------------------------
diff --git a/iocore/eventsystem/test_Event.cc b/iocore/eventsystem/test_Event.cc
index cc4b9db..16b0b12 100644
--- a/iocore/eventsystem/test_Event.cc
+++ b/iocore/eventsystem/test_Event.cc
@@ -128,7 +128,7 @@ struct alarm_printer:public Continuation
{
SET_HANDLER(&alarm_printer::dummy_function);
}
- int dummy_function(int event, Event * e)
+ int dummy_function(int /* event ATS_UNUSED */, Event * /* e ATS_UNUSED */)
{
ink_atomic_increment((int *) &count, 1);
printf("Count = %d\n", count);
@@ -141,7 +141,7 @@ struct process_killer:public Continuation
{
SET_HANDLER(&process_killer::kill_function);
}
- int kill_function(int event, Event * e)
+ int kill_function(int /* event ATS_UNUSED */, Event * /* e ATS_UNUSED */)
{
printf("Count is %d \n", count);
if (count <= 0)
@@ -154,7 +154,7 @@ struct process_killer:public Continuation
};
int
-main(int argc, const char *argv[])
+main(int /* argc ATS_UNUSED */, const char */* argv ATS_UNUSED */[])
{
RecModeT mode_type = RECM_STAND_ALONE;
count = 0;
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/351f63fd/iocore/net/test_certlookup.cc
----------------------------------------------------------------------
diff --git a/iocore/net/test_certlookup.cc b/iocore/net/test_certlookup.cc
index c5b60ae..9327258 100644
--- a/iocore/net/test_certlookup.cc
+++ b/iocore/net/test_certlookup.cc
@@ -34,7 +34,7 @@ make_endpoint(const char * address)
return ip;
}
-REGRESSION_TEST(SSLCertificateLookup)(RegressionTest* t, int atype, int * pstatus)
+REGRESSION_TEST(SSLCertificateLookup)(RegressionTest* t, int /* atype ATS_UNUSED */, int * pstatus)
{
TestBox box(t, pstatus);
SSLCertLookup lookup;
@@ -78,7 +78,7 @@ REGRESSION_TEST(SSLCertificateLookup)(RegressionTest* t, int atype, int * pstatu
box.check(lookup.findInfoInHash("www.bar.com") == NULL, "host lookup for www.bar.com");
}
-REGRESSION_TEST(SSLAddressLookup)(RegressionTest* t, int atype, int * pstatus)
+REGRESSION_TEST(SSLAddressLookup)(RegressionTest* t, int /* atype ATS_UNUSED */, int * pstatus)
{
TestBox box(t, pstatus);
SSLCertLookup lookup;
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/351f63fd/lib/ts/List.h
----------------------------------------------------------------------
diff --git a/lib/ts/List.h b/lib/ts/List.h
index 83331f5..b778d78 100644
--- a/lib/ts/List.h
+++ b/lib/ts/List.h
@@ -435,7 +435,7 @@ struct ConsCell {
ConsCell(C acar) : car(acar), cdr(NULL) {}
ConsCell(ConsCell *acdr) : cdr(acdr) {}
static void *operator new(size_t size) { return A::alloc(size); }
- static void operator delete(void *p, size_t size) { A::free(p); }
+ static void operator delete(void *p, size_t /* size ATS_UNUSED */) { A::free(p); }
};
template <class C, class A = DefaultAlloc>
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/351f63fd/lib/ts/test_Map.cc
----------------------------------------------------------------------
diff --git a/lib/ts/test_Map.cc b/lib/ts/test_Map.cc
index d5a504c..42ed0b2 100644
--- a/lib/ts/test_Map.cc
+++ b/lib/ts/test_Map.cc
@@ -25,7 +25,7 @@
typedef const char cchar;
-int main(int argc, char **argv) {
+int main(int /* argc ATS_UNUSED */, char **/*argv ATS_UNUSED */) {
typedef Map<cchar *, cchar *> SSMap;
typedef MapElem<cchar *, cchar *> SSMapElem;
#define form_SSMap(_p, _v) form_Map(SSMapElem, _p, _v)
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/351f63fd/lib/ts/test_Vec.cc
----------------------------------------------------------------------
diff --git a/lib/ts/test_Vec.cc b/lib/ts/test_Vec.cc
index 611565f..5672c9d 100644
--- a/lib/ts/test_Vec.cc
+++ b/lib/ts/test_Vec.cc
@@ -121,7 +121,7 @@ static void test_basic()
ink_assert(uf.find(1) == uf.find(3));
}
-int main(int argc, char **argv)
+int main(int /* argc ATS_UNUSED */, char **/* argv ATS_UNUSED */)
{
test_append();
test_basic();
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/351f63fd/lib/ts/test_atomic.cc
----------------------------------------------------------------------
diff --git a/lib/ts/test_atomic.cc b/lib/ts/test_atomic.cc
index 301de3c..ba95daf 100644
--- a/lib/ts/test_atomic.cc
+++ b/lib/ts/test_atomic.cc
@@ -138,7 +138,7 @@ cycle_data(void *d)
#endif // LONG_ATOMICLIST_TEST
int
-main(int argc, const char *argv[])
+main(int /* argc ATS_UNUSED */, const char */* argv ATS_UNUSED */[])
{
#ifndef LONG_ATOMICLIST_TEST
int32_t m = 1, n = 100;
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/351f63fd/lib/ts/test_freelist.cc
----------------------------------------------------------------------
diff --git a/lib/ts/test_freelist.cc b/lib/ts/test_freelist.cc
index 36fa645..12ebefa 100644
--- a/lib/ts/test_freelist.cc
+++ b/lib/ts/test_freelist.cc
@@ -70,7 +70,7 @@ test(void *d)
int
-main(int argc, char *argv[])
+main(int /* argc ATS_UNUSED */, char */*argv ATS_UNUSED */[])
{
int i;