2
0
forked from Ivasoft/DSView

Fix compile warnings

This commit is contained in:
DreamSourceLab
2015-12-15 00:34:13 +08:00
parent 6c6766641b
commit dc3263c04c
5 changed files with 10 additions and 18 deletions

View File

@@ -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);

View File

@@ -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(

View File

@@ -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;

View File

@@ -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();

View File

@@ -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