summaryrefslogtreecommitdiff
path: root/gr-fcd/lib/fcd_source_c.cc
diff options
context:
space:
mode:
authorJohnathan Corgan2012-03-13 09:17:33 -0700
committerJohnathan Corgan2012-03-13 09:37:04 -0700
commita14aeb5f17035e767270c631a9c8d1059d7d5f16 (patch)
treebe47496c70178cf2705c6066bece4c9c32ad3ce3 /gr-fcd/lib/fcd_source_c.cc
parent85beb37cac923798fa0ea6f27a3413e174e43367 (diff)
downloadgnuradio-a14aeb5f17035e767270c631a9c8d1059d7d5f16.tar.gz
gnuradio-a14aeb5f17035e767270c631a9c8d1059d7d5f16.tar.bz2
gnuradio-a14aeb5f17035e767270c631a9c8d1059d7d5f16.zip
fcd: fix compiler and documentation warnings
* Mismatch in parameter name in hidapi.h * Signedness error in hid-libusb.c * Disable unusued warning for TODO items in fcd_source_c.cc
Diffstat (limited to 'gr-fcd/lib/fcd_source_c.cc')
-rw-r--r--gr-fcd/lib/fcd_source_c.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/gr-fcd/lib/fcd_source_c.cc b/gr-fcd/lib/fcd_source_c.cc
index 22db5c669..75bdd3162 100644
--- a/gr-fcd/lib/fcd_source_c.cc
+++ b/gr-fcd/lib/fcd_source_c.cc
@@ -28,6 +28,7 @@
#include <gr_io_signature.h>
#include <gr_audio_source.h>
#include <gr_float_to_complex.h>
+#include <gruel/attributes.h>
//#include <iostream>
//using namespace std;
@@ -78,7 +79,7 @@ fcd_source_c::~fcd_source_c ()
// Set frequency with Hz resolution
void fcd_source_c::set_freq(int freq)
{
- FCD_MODE_ENUM fme;
+ FCD_MODE_ENUM __GR_ATTR_UNUSED fme;
double f = (double)freq;
/* valid range 50 MHz - 2.0 GHz */
@@ -96,7 +97,7 @@ void fcd_source_c::set_freq(int freq)
// Set frequency with Hz resolution (type float)
void fcd_source_c::set_freq(float freq)
{
- FCD_MODE_ENUM fme;
+ FCD_MODE_ENUM __GR_ATTR_UNUSED fme;
double f = (double)freq;
/* valid range 50 MHz - 2.0 GHz */
@@ -115,7 +116,7 @@ void fcd_source_c::set_freq(float freq)
// Set frequency with kHz resolution.
void fcd_source_c::set_freq_khz(int freq)
{
- FCD_MODE_ENUM fme;
+ FCD_MODE_ENUM __GR_ATTR_UNUSED fme;
double f = freq*1000.0;
/* valid range 50 MHz - 2.0 GHz */
@@ -134,7 +135,7 @@ void fcd_source_c::set_freq_khz(int freq)
// Set LNA gain
void fcd_source_c::set_lna_gain(float gain)
{
- FCD_MODE_ENUM fme;
+ FCD_MODE_ENUM __GR_ATTR_UNUSED fme;
unsigned char g;
/* convert to nearest discrete value */