forked from Ivasoft/DSView
minor update for compiling on linux machine
This commit is contained in:
@@ -28,7 +28,7 @@ project(DSLogic-gui)
|
||||
#= User Options
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
option(DISABLE_WERROR "Build without -Werror" FALSE)
|
||||
option(DISABLE_WERROR "Build without -Werror" TRUE)
|
||||
option(ENABLE_SIGNALS "Build with UNIX signals" TRUE)
|
||||
option(ENABLE_TESTS "Enable unit tests" FALSE)
|
||||
option(STATIC_PKGDEPS_LIBS "Statically link to (pkgconfig) libraries" FALSE)
|
||||
|
||||
@@ -117,7 +117,7 @@ void dsSerial::decode()
|
||||
uint64_t left = 0;
|
||||
uint64_t right = snapshot->get_sample_count() - 1;
|
||||
float samplesPerBit;
|
||||
int sampleOffset;
|
||||
//int sampleOffset;
|
||||
int i;
|
||||
_max_width = 0;
|
||||
_min_width = right;
|
||||
@@ -127,7 +127,7 @@ void dsSerial::decode()
|
||||
samplesPerBit = _data->get_samplerate() * 1.0f / _baudrate;
|
||||
else
|
||||
samplesPerBit = snapshot->get_min_pulse(left, right, _serial_index);
|
||||
sampleOffset = samplesPerBit / 2;
|
||||
//sampleOffset = samplesPerBit / 2;
|
||||
|
||||
if (!_state_index.empty())
|
||||
_state_index.clear();
|
||||
|
||||
@@ -992,7 +992,7 @@ void SigSession::rst_protocol_analyzer(int rst_index, std::list <int > _sel_prob
|
||||
void SigSession::del_protocol_analyzer(int protocol_index)
|
||||
{
|
||||
assert(protocol_index < _decoders.size());
|
||||
delete (_decoders.at(protocol_index)).first;
|
||||
//delete (_decoders.at(protocol_index)).first;
|
||||
|
||||
// BOOST_FOREACH(const int _index, (_decoders.at(protocol_index)).second) {
|
||||
// _signals.at(_index)->del_decoder();
|
||||
|
||||
@@ -174,7 +174,7 @@ void SamplingBar::update_sample_rate_selector()
|
||||
GVariant *gvar_dict, *gvar_list;
|
||||
const uint64_t *elements = NULL;
|
||||
gsize num_elements;
|
||||
QAction *selector_action = NULL;
|
||||
//QAction *selector_action = NULL;
|
||||
|
||||
assert(_sample_rate_list_action);
|
||||
|
||||
@@ -205,7 +205,7 @@ void SamplingBar::update_sample_rate_selector()
|
||||
_sample_rate_list.show();
|
||||
g_variant_unref(gvar_list);
|
||||
|
||||
selector_action = _sample_rate_list_action;
|
||||
//selector_action = _sample_rate_list_action;
|
||||
}
|
||||
|
||||
g_variant_unref(gvar_dict);
|
||||
|
||||
Reference in New Issue
Block a user