From cfdc9e7776acd1f2c8100ac3593482753c0dbca5 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 6 Jul 2010 17:59:11 -0700 Subject: uhd: removed some errors and warnings under macosx gcc build --- host/examples/benchmark_rx_rate.cpp | 4 +++- host/include/uhd/transport/alignment_buffer.ipp | 2 +- host/include/uhd/transport/bounded_buffer.ipp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'host') diff --git a/host/examples/benchmark_rx_rate.cpp b/host/examples/benchmark_rx_rate.cpp index 6984d7eff..a913261eb 100644 --- a/host/examples/benchmark_rx_rate.cpp +++ b/host/examples/benchmark_rx_rate.cpp @@ -82,7 +82,9 @@ static inline void test_device( &buff.front(), buff.size(), md, uhd::io_type_t::COMPLEX_FLOAT32, uhd::device::RECV_MODE_ONE_PACKET - )); + )){ + /* NOP */ + }; //print a summary std::cout << std::endl; //go to newline, recv may spew SXSYSZ... diff --git a/host/include/uhd/transport/alignment_buffer.ipp b/host/include/uhd/transport/alignment_buffer.ipp index f89f2886e..ed7cfd26c 100644 --- a/host/include/uhd/transport/alignment_buffer.ipp +++ b/host/include/uhd/transport/alignment_buffer.ipp @@ -130,7 +130,7 @@ namespace uhd{ namespace transport{ template typename alignment_buffer::sptr alignment_buffer::make(size_t capacity, size_t width){ - return alignment_buffer::sptr( + return typename alignment_buffer::sptr( new alignment_buffer_impl(capacity, width) ); } diff --git a/host/include/uhd/transport/bounded_buffer.ipp b/host/include/uhd/transport/bounded_buffer.ipp index 6885b357d..e106e229e 100644 --- a/host/include/uhd/transport/bounded_buffer.ipp +++ b/host/include/uhd/transport/bounded_buffer.ipp @@ -104,7 +104,7 @@ namespace uhd{ namespace transport{ template typename bounded_buffer::sptr bounded_buffer::make(size_t capacity){ - return bounded_buffer::sptr(new bounded_buffer_impl(capacity)); + return typename bounded_buffer::sptr(new bounded_buffer_impl(capacity)); } }} //namespace -- cgit v1.2.3