diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-18 18:27:49 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-18 18:27:49 -0700 |
commit | 5aac700bc675c913b75b5fd791d9cf92949ceeea (patch) | |
tree | 19ca356f6ad49f71b4a7f1e2eb9e344059cc6402 /host/lib/usrp/dboard | |
parent | 4db60e8d0e2cd227308a401fa185f209ea61ab6b (diff) | |
download | uhd-5aac700bc675c913b75b5fd791d9cf92949ceeea.tar.gz uhd-5aac700bc675c913b75b5fd791d9cf92949ceeea.tar.bz2 uhd-5aac700bc675c913b75b5fd791d9cf92949ceeea.zip |
init values in dboards to remove gcc warnings
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r-- | host/lib/usrp/dboard/db_rfx.cpp | 4 | ||||
-rw-r--r-- | host/lib/usrp/dboard/db_wbx.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/dboard/db_rfx.cpp b/host/lib/usrp/dboard/db_rfx.cpp index bbc9716b1..3b3b96fad 100644 --- a/host/lib/usrp/dboard/db_rfx.cpp +++ b/host/lib/usrp/dboard/db_rfx.cpp @@ -258,8 +258,8 @@ double rfx_xcvr::set_lo_freq( (8, adf4360_regs_t::BAND_SELECT_CLOCK_DIV_8) ; - double actual_freq, ref_freq = this->get_iface()->get_clock_rate(unit); - int R, BS, P, B, A; + double actual_freq=0, ref_freq = this->get_iface()->get_clock_rate(unit); + int R=0, BS=0, P=0, B=0, A=0; /* * The goal here to to loop though possible R dividers, diff --git a/host/lib/usrp/dboard/db_wbx.cpp b/host/lib/usrp/dboard/db_wbx.cpp index 2a8a3a9f2..81edf7a11 100644 --- a/host/lib/usrp/dboard/db_wbx.cpp +++ b/host/lib/usrp/dboard/db_wbx.cpp @@ -303,7 +303,7 @@ double wbx_xcvr::set_lo_freq( double actual_freq, pfd_freq; double ref_freq = this->get_iface()->get_clock_rate(unit); - int R, BS, N, FRAC, MOD; + int R=0, BS=0, N=0, FRAC=0, MOD=0; int RFdiv = 1; adf4350_regs_t::reference_divide_by_2_t T = adf4350_regs_t::REFERENCE_DIVIDE_BY_2_DISABLED; adf4350_regs_t::reference_doubler_t D = adf4350_regs_t::REFERENCE_DOUBLER_DISABLED; |