Commit dc3263c0 authored by DreamSourceLab's avatar DreamSourceLab

Fix compile warnings

parent 6c676664
......@@ -267,7 +267,6 @@ void TriggerDock::paintEvent(QPaintEvent *)
void TriggerDock::simple_trigger()
{
int i;
stages_label->setDisabled(true);
stages_comboBox->setDisabled(true);
_adv_tabWidget->setDisabled(true);
......
......@@ -494,8 +494,6 @@ void SamplingBar::commit_sample_rate()
void SamplingBar::on_samplecount_sel(int index)
{
uint64_t sample_count = 0;
uint64_t max_sample_count = 0;
bool stream_mode = false;
qDebug() << "index: " << index;
if (index >= 0)
......@@ -520,10 +518,6 @@ void SamplingBar::on_samplecount_sel(int index)
void SamplingBar::on_samplerate_sel(int index)
{
uint64_t sample_rate = 0;
//uint64_t last_sample_rate = 0;
uint64_t max_sample_count = 0;
uint64_t sample_count = 0;
bool stream_mode = false;
if (index >= 0)
sample_rate = _sample_rate.itemData(
......
......@@ -426,15 +426,15 @@ bool DsoSignal::load_settings()
GVariant* gvar;
// -- enable
bool enable;
gvar = _dev_inst->get_config(_probe, NULL, SR_CONF_EN_CH);
if (gvar != NULL) {
enable = g_variant_get_boolean(gvar);
g_variant_unref(gvar);
} else {
qDebug() << "ERROR: config_get SR_CONF_EN_CH failed.";
return false;
}
//bool enable;
//gvar = _dev_inst->get_config(_probe, NULL, SR_CONF_EN_CH);
//if (gvar != NULL) {
// enable = g_variant_get_boolean(gvar);
// g_variant_unref(gvar);
//} else {
// qDebug() << "ERROR: config_get SR_CONF_EN_CH failed.";
// return false;
//}
// -- hdiv
uint64_t hdiv;
......
......@@ -140,7 +140,6 @@ void Header::mouseDoubleClickEvent(QMouseEvent *event)
const vector< boost::shared_ptr<Trace> > traces(
_view.get_traces());
int action;
if (event->button() & Qt::LeftButton) {
_mouse_down_point = event->pos();
......
......@@ -49,7 +49,7 @@ Arch:
Step2: Get the DSView source code
$ clone git://github.com/DreamSourceLab/DSView
$ git clone git://github.com/DreamSourceLab/DSView
Step3: Building
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment