aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
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/examples
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/examples')
-rw-r--r--host/examples/test_async_messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/examples/test_async_messages.cpp b/host/examples/test_async_messages.cpp
index 4c9d18121..0a5c076ea 100644
--- a/host/examples/test_async_messages.cpp
+++ b/host/examples/test_async_messages.cpp
@@ -58,7 +58,7 @@ void test_no_async_message(uhd::usrp::single_usrp::sptr sdev){
" Got unexpected event code 0x%x.\n"
) % async_md.event_code << std::endl;
//clear the async messages
- while (dev->recv_async_msg(async_md, 0));
+ while (dev->recv_async_msg(async_md, 0)){};
}
else{
std::cout << boost::format(