aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/nirio_zero_copy.cpp
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2014-08-21 16:45:52 -0700
committerAshish Chaudhari <ashish@ettus.com>2014-10-10 17:49:09 -0700
commit2d2ac40b077fbff2dd4886f22125742825aaa8fb (patch)
treee4c04b51969fabc426f11bafadf06e71ab236f74 /host/lib/transport/nirio_zero_copy.cpp
parentcca10287170e8ad50740791e7cbe715b642c2a87 (diff)
downloaduhd-2d2ac40b077fbff2dd4886f22125742825aaa8fb.tar.gz
uhd-2d2ac40b077fbff2dd4886f22125742825aaa8fb.tar.bz2
uhd-2d2ac40b077fbff2dd4886f22125742825aaa8fb.zip
nirio: Made new nirio iface code compile with GCC
- Addressed GCC specific errors and warnings
Diffstat (limited to 'host/lib/transport/nirio_zero_copy.cpp')
-rw-r--r--host/lib/transport/nirio_zero_copy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/transport/nirio_zero_copy.cpp b/host/lib/transport/nirio_zero_copy.cpp
index 7ba8cb4c8..9d64d0792 100644
--- a/host/lib/transport/nirio_zero_copy.cpp
+++ b/host/lib/transport/nirio_zero_copy.cpp
@@ -267,13 +267,13 @@ private:
// get the number of elements in the buffer and then
// repeatedly with the number of remaining elements
// until the buffer is empty
- fifo_data_t* elems_buffer;
for (size_t num_elems_requested = 0,
num_elems_acquired = 0,
num_elems_remaining = 1;
num_elems_remaining;
num_elems_requested = num_elems_remaining)
{
+ fifo_data_t* elems_buffer = NULL;
nirio_status status = _recv_fifo->acquire(
elems_buffer,
num_elems_requested,