aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-09-27 11:35:28 -0700
committerJosh Blum <josh@joshknows.com>2010-09-27 11:35:28 -0700
commit2f62c39b7135728ed06faa06db46004323b1c70f (patch)
tree9973f180b209240ca6bb547f95bd8a168ae72c79 /host/lib/usrp
parent694404694515e293da6b8949e74af5f469a2e1e5 (diff)
downloaduhd-2f62c39b7135728ed06faa06db46004323b1c70f.tar.gz
uhd-2f62c39b7135728ed06faa06db46004323b1c70f.tar.bz2
uhd-2f62c39b7135728ed06faa06db46004323b1c70f.zip
uhd: fix warning by adding brackets for while(cond){};
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 91a1b2344..65411801d 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -150,7 +150,7 @@ void usrp2_impl::io_init(void){
std::memcpy(send_buff->cast<void*>(), &data, sizeof(data));
send_buff->commit(sizeof(data));
//drain the recv buffers (may have junk)
- while (data_transport->get_recv_buff().get());
+ while (data_transport->get_recv_buff().get()){};
}
//the number of recv frames is the number for the first transport