From 2d2ac40b077fbff2dd4886f22125742825aaa8fb Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Thu, 21 Aug 2014 16:45:52 -0700 Subject: nirio: Made new nirio iface code compile with GCC - Addressed GCC specific errors and warnings --- host/lib/transport/nirio_zero_copy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/transport/nirio_zero_copy.cpp') 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, -- cgit v1.2.3