[Sumover-dev] [svn commit] r4796 - vic/branches/cc/cc
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Thu May 6 15:30:36 BST 2010
Author: soohyunc
Date: Thu May 6 15:30:36 2010
New Revision: 4796
Modified:
vic/branches/cc/cc/cc_common.h
vic/branches/cc/cc/tfwc_sndr.cpp
vic/branches/cc/cc/tfwc_sndr.h
Log:
shut off some gcc-4.x warning messages: unused parameters
Modified: vic/branches/cc/cc/cc_common.h
==============================================================================
--- vic/branches/cc/cc/cc_common.h (original)
+++ vic/branches/cc/cc/cc_common.h Thu May 6 15:30:36 2010
@@ -52,4 +52,8 @@
#define BITLEN 16
+// timestamp skew from Vic to Network Device
+// (approximately 10 usec)
+#define SKEW 0.000010
+
#endif /* vic_cc_common_h */
Modified: vic/branches/cc/cc/tfwc_sndr.cpp
==============================================================================
--- vic/branches/cc/cc/tfwc_sndr.cpp (original)
+++ vic/branches/cc/cc/tfwc_sndr.cpp Thu May 6 15:30:36 2010
@@ -43,10 +43,6 @@
#include "transmitter.h"
#include "tfwc_sndr.h"
-// timestamp skew from Vic to Network Device
-// (approximately 10 usec)
-#define SKEW 0.000010
-
/*
* retransmission timer
*/
@@ -205,6 +201,9 @@
void TfwcSndr::recv(u_int16_t type, u_int16_t begin, u_int16_t end,
u_int16_t *chunk, double so_rtime, bool recv_by_ch, pktbuf* pb)
{
+ UNUSED(recv_by_ch);
+ UNUSED(pb);
+
switch (type) {
// retrieve ackvec
case XR_BT_1:
Modified: vic/branches/cc/cc/tfwc_sndr.h
==============================================================================
--- vic/branches/cc/cc/tfwc_sndr.h (original)
+++ vic/branches/cc/cc/tfwc_sndr.h Thu May 6 15:30:36 2010
@@ -34,6 +34,7 @@
#ifndef vic_tfwc_sndr_h
#define vic_tfwc_sndr_h
+#include "config.h"
#include "bitmap.h" // bitmap operations
#include "cc_common.h"
#include "cc_timer.h"
@@ -63,9 +64,9 @@
virtual ~TfwcSndr() {};
// virtual functions
- virtual void cc_tfwc_output(bool recv_by_ch=0) {};
+ virtual void cc_tfwc_output(bool recv_by_ch=0) {UNUSED(recv_by_ch);};
virtual void cc_tfwc_output(pktbuf*) {};
- virtual void cc_tfwc_trigger(pktbuf* pb=0) {};
+ virtual void cc_tfwc_trigger(pktbuf* pb=0) {UNUSED(pb);};
virtual double tx_ts_offset() {};
virtual int tx_buf_size() {};
More information about the Sumover-dev
mailing list