summaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-18 18:03:27 -0700
committerJosh Blum <josh@joshknows.com>2010-05-18 18:03:27 -0700
commitbea1c582491d71bf90e240be345a32ba77028460 (patch)
treec3e3ea480c5a4da7c4b9b55e241e62be7eda7928 /host/lib
parent21e9cf4bece884ced5b7294e012be971e941c511 (diff)
downloaduhd-bea1c582491d71bf90e240be345a32ba77028460.tar.gz
uhd-bea1c582491d71bf90e240be345a32ba77028460.tar.bz2
uhd-bea1c582491d71bf90e240be345a32ba77028460.zip
tweaks to remove warning is msvc
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/transport/vrt_packet_handler.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/transport/vrt_packet_handler.hpp b/host/lib/transport/vrt_packet_handler.hpp
index c857db1c4..5b73c82bf 100644
--- a/host/lib/transport/vrt_packet_handler.hpp
+++ b/host/lib/transport/vrt_packet_handler.hpp
@@ -28,6 +28,7 @@
#include <uhd/transport/zero_copy.hpp>
#include <boost/asio/buffer.hpp>
#include <boost/function.hpp>
+#include <stdexcept>
#include <iostream>
namespace vrt_packet_handler{
@@ -209,6 +210,8 @@ namespace vrt_packet_handler{
}
return total_num_samps;
}
+
+ default: throw std::runtime_error("unknown recv mode");
}//switch(recv_mode)
}
@@ -350,6 +353,8 @@ namespace vrt_packet_handler{
}
return total_num_samps;
}
+
+ default: throw std::runtime_error("unknown send mode");
}//switch(send_mode)
}