aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2015-08-19 11:13:20 -0700
committerMartin Braun <martin.braun@ettus.com>2015-09-01 13:23:19 -0700
commit0ce526f302de68ece342545b4533aab699336028 (patch)
tree5d61c92a78ddb09225930701d53239c163a21e6b /host/include
parent4cfa04f771649245148b7c993d52fdd34225b08e (diff)
downloaduhd-0ce526f302de68ece342545b4533aab699336028.tar.gz
uhd-0ce526f302de68ece342545b4533aab699336028.tar.bz2
uhd-0ce526f302de68ece342545b4533aab699336028.zip
Fixed minor warnings
* Unreferenced exceptions in try-catch statements * Incorrect function documentation * Unlabelled unused variables
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/types/metadata.h10
-rw-r--r--host/include/uhd/usrp/usrp.h4
-rw-r--r--host/include/uhd/utils/soft_register.hpp2
3 files changed, 8 insertions, 8 deletions
diff --git a/host/include/uhd/types/metadata.h b/host/include/uhd/types/metadata.h
index 0cdbc6a72..37758e16a 100644
--- a/host/include/uhd/types/metadata.h
+++ b/host/include/uhd/types/metadata.h
@@ -164,7 +164,7 @@ UHD_API uhd_error uhd_rx_metadata_out_of_sequence(
*
* \param h metadata handle
* \param pp_string_out string buffer for pp_string
- * \param buffer length
+ * \param strbuffer_len buffer length
*/
UHD_API uhd_error uhd_rx_metadata_to_pp_string(
uhd_rx_metadata_handle h,
@@ -190,7 +190,7 @@ UHD_API uhd_error uhd_rx_metadata_error_code(
*
* \param h metadata handle
* \param strerror_out string buffer for strerror
- * \param buffer length
+ * \param strbuffer_len buffer length
*/
UHD_API uhd_error uhd_rx_metadata_strerror(
uhd_rx_metadata_handle h,
@@ -210,7 +210,7 @@ UHD_API uhd_error uhd_rx_metadata_strerror(
*
* \param h metadata handle
* \param error_out string buffer for error
- * \param buffer length
+ * \param strbuffer_len buffer length
*/
UHD_API uhd_error uhd_rx_metadata_last_error(
uhd_rx_metadata_handle h,
@@ -269,7 +269,7 @@ UHD_API uhd_error uhd_tx_metadata_end_of_burst(
*
* \param h metadata handle
* \param error_out string buffer for error
- * \param buffer length
+ * \param strbuffer_len buffer length
*/
UHD_API uhd_error uhd_tx_metadata_last_error(
uhd_tx_metadata_handle h,
@@ -349,7 +349,7 @@ UHD_API uhd_error uhd_async_metadata_user_payload(
*
* \param h metadata handle
* \param error_out string buffer for error
- * \param buffer length
+ * \param strbuffer_len buffer length
*/
UHD_API uhd_error uhd_async_metadata_last_error(
uhd_async_metadata_handle h,
diff --git a/host/include/uhd/usrp/usrp.h b/host/include/uhd/usrp/usrp.h
index 1bde694b4..67f8e0f70 100644
--- a/host/include/uhd/usrp/usrp.h
+++ b/host/include/uhd/usrp/usrp.h
@@ -155,7 +155,7 @@ UHD_API uhd_error uhd_rx_streamer_max_num_samps(
*
* \param h RX streamer handle
* \param buffs pointer to buffers in which to receive samples
- * \param samps_per_buffer max number of samples per buffer
+ * \param samps_per_buff max number of samples per buffer
* \param md handle to RX metadata in which to receive results
* \param timeout timeout in seconds to wait for a packet
* \param one_packet send a single packet
@@ -235,7 +235,7 @@ UHD_API uhd_error uhd_tx_streamer_max_num_samps(
*
* \param h TX streamer handle
* \param buffs pointer to buffers containing samples to send
- * \param samps_per_buffer max number of samples per buffer
+ * \param samps_per_buff max number of samples per buffer
* \param md handle to TX metadata
* \param timeout timeout in seconds to wait for a packet
* \param items_sent pointer to output variable for number of samples send
diff --git a/host/include/uhd/utils/soft_register.hpp b/host/include/uhd/utils/soft_register.hpp
index 9006ab5c7..a2c34a4ec 100644
--- a/host/include/uhd/utils/soft_register.hpp
+++ b/host/include/uhd/utils/soft_register.hpp
@@ -649,7 +649,7 @@ public:
BOOST_FOREACH(const soft_regmap_accessor_t* db, _regmap_dbs) {
try {
return db->lookup(newpath.substr(1));
- } catch (std::exception& e) {
+ } catch (std::exception&) {
continue;
}
}