Skip to content

Commit

Permalink
Avoid unused rc variable warning
Browse files Browse the repository at this point in the history
Ensure compiler assumes rc is used in uhd_iface_new to avoid unused
variable warning with NDEBUG builds.
  • Loading branch information
spbnick committed Jul 12, 2014
1 parent d30e7f5 commit 61b35ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ uhd_iface_new(const uhd_dev *dev,
libusb_get_bus_number(lusb_dev),
libusb_get_device_address(lusb_dev),
number);
(void)rc;
assert(rc == (sizeof(iface->addr_str) - 1));

assert(uhd_iface_valid(iface));
Expand Down

0 comments on commit 61b35ca

Please sign in to comment.