Closed teyssieuman closed 7 years ago
Is there any warnings when you compile the code? What you posted should not be the cause.
Here are the logs:
fabrice@assus1:~/Bureau/DSView-master/DSView/DSView$ cmake .
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- The C compiler identification is GNU 5.2.1
-- The CXX compiler identification is GNU 5.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- checking for modules 'libsigrok4DSL >= 0.2.0;libusb-1.0 >= 1.0.16;libsigrokdecode>=0.3.0'
-- found libsigrok4DSL , version 0.2.0
-- found libusb-1.0 , version 1.0.18
-- found libsigrokdecode, version 0.4.0-git-033e7d4
-- Using Qt5
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- thread
-- Found libusb-1.0:
-- - Includes: /usr/local/include
-- - Libraries: /usr/local/lib/libusb-1.0.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fabrice/Bureau/DSView-master/DSView/DSView
and then :
fabrice@assus1:~/Bureau/DSView-master/DSView/DSView$ make
[ 1%] Generating qrc_DSView.cpp
[ 1%] Generating pv/moc_mainwindow.cpp
[ 2%] Generating pv/moc_sigsession.cpp
[ 2%] Generating pv/moc_storesession.cpp
[ 3%] Generating pv/device/moc_devinst.cpp
[ 4%] Generating pv/dialogs/moc_about.cpp
[ 4%] Generating pv/dialogs/moc_deviceoptions.cpp
[ 5%] Generating pv/dialogs/moc_search.cpp
[ 6%] Generating pv/dialogs/moc_storeprogress.cpp
[ 6%] Generating pv/dialogs/moc_streamoptions.cpp
[ 7%] Generating pv/dialogs/moc_waitingdialog.cpp
[ 8%] Generating pv/dialogs/moc_dsomeasure.cpp
[ 8%] Generating pv/dock/moc_dsotriggerdock.cpp
[ 9%] Generating pv/dock/moc_measuredock.cpp
[ 10%] Generating pv/dock/moc_searchdock.cpp
[ 10%] Generating pv/dock/moc_triggerdock.cpp
[ 11%] Generating pv/prop/moc_bool.cpp
[ 12%] Generating pv/prop/moc_double.cpp
[ 12%] Generating pv/prop/moc_enum.cpp
[ 13%] Generating pv/prop/moc_int.cpp
[ 14%] Generating pv/prop/moc_property.cpp
[ 14%] Generating pv/prop/moc_string.cpp
[ 15%] Generating pv/toolbars/moc_filebar.cpp
[ 16%] Generating pv/toolbars/moc_logobar.cpp
[ 16%] Generating pv/toolbars/moc_samplingbar.cpp
[ 17%] Generating pv/toolbars/moc_trigbar.cpp
[ 18%] Generating pv/view/moc_cursor.cpp
[ 18%] Generating pv/view/moc_devmode.cpp
[ 19%] Generating pv/view/moc_header.cpp
[ 20%] Generating pv/view/moc_ruler.cpp
[ 20%] Generating pv/view/moc_selectableitem.cpp
[ 21%] Generating pv/view/moc_timemarker.cpp
[ 22%] Generating pv/view/moc_trace.cpp
[ 22%] Generating pv/view/moc_view.cpp
[ 23%] Generating pv/view/moc_viewport.cpp
[ 24%] Generating pv/widgets/moc_fakelineedit.cpp
[ 24%] Generating pv/dock/moc_protocoldock.cpp
[ 25%] Generating pv/data/moc_decoderstack.cpp
[ 26%] Generating pv/view/moc_decodetrace.cpp
[ 26%] Generating pv/widgets/moc_decodergroupbox.cpp
[ 27%] Generating pv/widgets/moc_decodermenu.cpp
[ 27%] Generating ui_about.h
Scanning dependencies of target DSView
[ 28%] Building CXX object CMakeFiles/DSView.dir/main.cpp.o
[ 28%] Building CXX object CMakeFiles/DSView.dir/pv/devicemanager.cpp.o
[ 29%] Building CXX object CMakeFiles/DSView.dir/pv/mainwindow.cpp.o
[ 30%] Building CXX object CMakeFiles/DSView.dir/pv/sigsession.cpp.o
[ 30%] Building CXX object CMakeFiles/DSView.dir/pv/storesession.cpp.o
[ 31%] Building CXX object CMakeFiles/DSView.dir/pv/data/analog.cpp.o
[ 32%] Building CXX object CMakeFiles/DSView.dir/pv/data/analogsnapshot.cpp.o
[ 32%] Building CXX object CMakeFiles/DSView.dir/pv/data/dso.cpp.o
[ 33%] Building CXX object CMakeFiles/DSView.dir/pv/data/dsosnapshot.cpp.o
[ 34%] Building CXX object CMakeFiles/DSView.dir/pv/data/group.cpp.o
[ 34%] Building CXX object CMakeFiles/DSView.dir/pv/data/groupsnapshot.cpp.o
[ 35%] Building CXX object CMakeFiles/DSView.dir/pv/data/logic.cpp.o
[ 36%] Building CXX object CMakeFiles/DSView.dir/pv/data/logicsnapshot.cpp.o
[ 36%] Building CXX object CMakeFiles/DSView.dir/pv/data/signaldata.cpp.o
[ 37%] Building CXX object CMakeFiles/DSView.dir/pv/data/snapshot.cpp.o
[ 38%] Building CXX object CMakeFiles/DSView.dir/pv/device/devinst.cpp.o
[ 38%] Building CXX object CMakeFiles/DSView.dir/pv/device/device.cpp.o
[ 39%] Building CXX object CMakeFiles/DSView.dir/pv/device/file.cpp.o
[ 40%] Building CXX object CMakeFiles/DSView.dir/pv/device/inputfile.cpp.o
[ 40%] Building CXX object CMakeFiles/DSView.dir/pv/device/sessionfile.cpp.o
[ 41%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/about.cpp.o
[ 42%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/deviceoptions.cpp.o
[ 42%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/search.cpp.o
[ 43%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/storeprogress.cpp.o
[ 44%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/streamoptions.cpp.o
[ 44%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/waitingdialog.cpp.o
[ 45%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/dsomeasure.cpp.o
[ 46%] Building CXX object CMakeFiles/DSView.dir/pv/dock/dsotriggerdock.cpp.o
[ 46%] Building CXX object CMakeFiles/DSView.dir/pv/dock/measuredock.cpp.o
[ 47%] Building CXX object CMakeFiles/DSView.dir/pv/dock/searchdock.cpp.o
[ 48%] Building CXX object CMakeFiles/DSView.dir/pv/dock/triggerdock.cpp.o
[ 48%] Building CXX object CMakeFiles/DSView.dir/pv/prop/bool.cpp.o
[ 49%] Building CXX object CMakeFiles/DSView.dir/pv/prop/double.cpp.o
[ 50%] Building CXX object CMakeFiles/DSView.dir/pv/prop/enum.cpp.o
[ 50%] Building CXX object CMakeFiles/DSView.dir/pv/prop/int.cpp.o
[ 51%] Building CXX object CMakeFiles/DSView.dir/pv/prop/property.cpp.o
[ 51%] Building CXX object CMakeFiles/DSView.dir/pv/prop/string.cpp.o
[ 52%] Building CXX object CMakeFiles/DSView.dir/pv/prop/binding/binding.cpp.o
[ 53%] Building CXX object CMakeFiles/DSView.dir/pv/prop/binding/binding_deviceoptions.cpp.o
[ 53%] Building CXX object CMakeFiles/DSView.dir/pv/toolbars/filebar.cpp.o
[ 54%] Building CXX object CMakeFiles/DSView.dir/pv/toolbars/logobar.cpp.o
[ 55%] Building CXX object CMakeFiles/DSView.dir/pv/toolbars/samplingbar.cpp.o
[ 55%] Building CXX object CMakeFiles/DSView.dir/pv/toolbars/trigbar.cpp.o
[ 56%] Building CXX object CMakeFiles/DSView.dir/pv/view/analogsignal.cpp.o
[ 57%] Building CXX object CMakeFiles/DSView.dir/pv/view/cursor.cpp.o
[ 57%] Building CXX object CMakeFiles/DSView.dir/pv/view/devmode.cpp.o
[ 58%] Building CXX object CMakeFiles/DSView.dir/pv/view/dsldial.cpp.o
[ 59%] Building CXX object CMakeFiles/DSView.dir/pv/view/dsosignal.cpp.o
[ 59%] Building CXX object CMakeFiles/DSView.dir/pv/view/groupsignal.cpp.o
[ 60%] Building CXX object CMakeFiles/DSView.dir/pv/view/header.cpp.o
[ 61%] Building CXX object CMakeFiles/DSView.dir/pv/view/logicsignal.cpp.o
[ 61%] Building CXX object CMakeFiles/DSView.dir/pv/view/ruler.cpp.o
[ 62%] Building CXX object CMakeFiles/DSView.dir/pv/view/selectableitem.cpp.o
[ 63%] Building CXX object CMakeFiles/DSView.dir/pv/view/signal.cpp.o
[ 63%] Building CXX object CMakeFiles/DSView.dir/pv/view/timemarker.cpp.o
[ 64%] Building CXX object CMakeFiles/DSView.dir/pv/view/trace.cpp.o
[ 65%] Building CXX object CMakeFiles/DSView.dir/pv/view/view.cpp.o
[ 65%] Building CXX object CMakeFiles/DSView.dir/pv/view/viewport.cpp.o
[ 66%] Building CXX object CMakeFiles/DSView.dir/pv/widgets/fakelineedit.cpp.o
[ 67%] Building CXX object CMakeFiles/DSView.dir/pv/dock/protocoldock.cpp.o
[ 67%] Building CXX object CMakeFiles/DSView.dir/pv/data/decoderstack.cpp.o
[ 68%] Building CXX object CMakeFiles/DSView.dir/pv/data/decode/annotation.cpp.o
[ 69%] Building CXX object CMakeFiles/DSView.dir/pv/data/decode/decoder.cpp.o
[ 69%] Building CXX object CMakeFiles/DSView.dir/pv/data/decode/row.cpp.o
[ 70%] Building CXX object CMakeFiles/DSView.dir/pv/data/decode/rowdata.cpp.o
[ 71%] Building CXX object CMakeFiles/DSView.dir/pv/prop/binding/decoderoptions.cpp.o
[ 71%] Building CXX object CMakeFiles/DSView.dir/pv/view/decodetrace.cpp.o
[ 72%] Building CXX object CMakeFiles/DSView.dir/pv/widgets/decodergroupbox.cpp.o
[ 73%] Building CXX object CMakeFiles/DSView.dir/pv/widgets/decodermenu.cpp.o
[ 73%] Building CXX object CMakeFiles/DSView.dir/pv/moc_mainwindow.cpp.o
[ 74%] Building CXX object CMakeFiles/DSView.dir/pv/moc_sigsession.cpp.o
[ 75%] Building CXX object CMakeFiles/DSView.dir/pv/moc_storesession.cpp.o
[ 75%] Building CXX object CMakeFiles/DSView.dir/pv/device/moc_devinst.cpp.o
[ 76%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/moc_about.cpp.o
[ 76%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/moc_deviceoptions.cpp.o
[ 77%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/moc_search.cpp.o
[ 78%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/moc_storeprogress.cpp.o
[ 78%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/moc_streamoptions.cpp.o
[ 79%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/moc_waitingdialog.cpp.o
[ 80%] Building CXX object CMakeFiles/DSView.dir/pv/dialogs/moc_dsomeasure.cpp.o
[ 80%] Building CXX object CMakeFiles/DSView.dir/pv/dock/moc_dsotriggerdock.cpp.o
[ 81%] Building CXX object CMakeFiles/DSView.dir/pv/dock/moc_measuredock.cpp.o
[ 82%] Building CXX object CMakeFiles/DSView.dir/pv/dock/moc_searchdock.cpp.o
[ 82%] Building CXX object CMakeFiles/DSView.dir/pv/dock/moc_triggerdock.cpp.o
[ 83%] Building CXX object CMakeFiles/DSView.dir/pv/prop/moc_bool.cpp.o
[ 84%] Building CXX object CMakeFiles/DSView.dir/pv/prop/moc_double.cpp.o
[ 84%] Building CXX object CMakeFiles/DSView.dir/pv/prop/moc_enum.cpp.o
[ 85%] Building CXX object CMakeFiles/DSView.dir/pv/prop/moc_int.cpp.o
[ 86%] Building CXX object CMakeFiles/DSView.dir/pv/prop/moc_property.cpp.o
[ 86%] Building CXX object CMakeFiles/DSView.dir/pv/prop/moc_string.cpp.o
[ 87%] Building CXX object CMakeFiles/DSView.dir/pv/toolbars/moc_filebar.cpp.o
[ 88%] Building CXX object CMakeFiles/DSView.dir/pv/toolbars/moc_logobar.cpp.o
[ 88%] Building CXX object CMakeFiles/DSView.dir/pv/toolbars/moc_samplingbar.cpp.o
[ 89%] Building CXX object CMakeFiles/DSView.dir/pv/toolbars/moc_trigbar.cpp.o
[ 90%] Building CXX object CMakeFiles/DSView.dir/pv/view/moc_cursor.cpp.o
[ 90%] Building CXX object CMakeFiles/DSView.dir/pv/view/moc_devmode.cpp.o
[ 91%] Building CXX object CMakeFiles/DSView.dir/pv/view/moc_header.cpp.o
[ 92%] Building CXX object CMakeFiles/DSView.dir/pv/view/moc_ruler.cpp.o
[ 92%] Building CXX object CMakeFiles/DSView.dir/pv/view/moc_selectableitem.cpp.o
[ 93%] Building CXX object CMakeFiles/DSView.dir/pv/view/moc_timemarker.cpp.o
[ 94%] Building CXX object CMakeFiles/DSView.dir/pv/view/moc_trace.cpp.o
[ 94%] Building CXX object CMakeFiles/DSView.dir/pv/view/moc_view.cpp.o
[ 95%] Building CXX object CMakeFiles/DSView.dir/pv/view/moc_viewport.cpp.o
[ 96%] Building CXX object CMakeFiles/DSView.dir/pv/widgets/moc_fakelineedit.cpp.o
[ 96%] Building CXX object CMakeFiles/DSView.dir/pv/dock/moc_protocoldock.cpp.o
[ 97%] Building CXX object CMakeFiles/DSView.dir/pv/data/moc_decoderstack.cpp.o
[ 98%] Building CXX object CMakeFiles/DSView.dir/pv/view/moc_decodetrace.cpp.o
[ 98%] Building CXX object CMakeFiles/DSView.dir/pv/widgets/moc_decodergroupbox.cpp.o
[ 99%] Building CXX object CMakeFiles/DSView.dir/pv/widgets/moc_decodermenu.cpp.o
[100%] Building CXX object CMakeFiles/DSView.dir/qrc_DSView.cpp.o
Linking CXX executable DSView
[100%] Built target DSView
As you can see, there is no Warning that can give me guess about the problem.
There is a log of warning when I compile "libsigrok4DSL":
make all-recursive
Making all in hardware
Making all in demo
CC libsigrok4DSL_hw_demo_la-demo.lo
In file included from demo.c:32:0:
../../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
demo.c: In function 'hw_dev_mode_list':
demo.c:381:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < ARRAY_SIZE(mode_list); i++) {
^
demo.c: In function 'samples_generator':
demo.c:743:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
pre_buf = sinx;
^
demo.c:746:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
pre_buf = sqrx;
^
demo.c:749:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
pre_buf = trix;
^
demo.c:752:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
pre_buf = sawx;
^
demo.c:755:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
pre_buf = ranx;
^
demo.c:758:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
pre_buf = sinx;
^
demo.c: In function 'receive_data':
demo.c:875:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < sending_now; i++) {
^
demo.c:941:29: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
analog.data = devc->buf;
^
demo.c:966:33: warning: passing argument 1 of 'hw_dev_acquisition_stop' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
hw_dev_acquisition_stop(sdi, NULL);
^
demo.c:289:12: note: expected 'struct sr_dev_inst *' but argument is of type 'const struct sr_dev_inst *'
static int hw_dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data);
^
demo.c:842:35: warning: unused variable 'expected_samplenum' [-Wunused-variable]
static uint64_t samples_to_send, expected_samplenum, sending_now;
^
demo.c: In function 'hw_dev_acquisition_start':
demo.c:998:30: warning: implicit declaration of function 'ds_trigger_get_mask0' [-Wimplicit-function-declaration]
devc->trigger_mask = ds_trigger_get_mask0(TriggerStages);
^
demo.c:999:31: warning: implicit declaration of function 'ds_trigger_get_value0' [-Wimplicit-function-declaration]
devc->trigger_value = ds_trigger_get_value0(TriggerStages);
^
demo.c:1000:30: warning: implicit declaration of function 'ds_trigger_get_edge0' [-Wimplicit-function-declaration]
devc->trigger_edge = ds_trigger_get_edge0(TriggerStages);
^
demo.c:1031:18: warning: passing argument 4 of 'sr_session_source_add_channel' from incompatible pointer type [-Wincompatible-pointer-types]
100, receive_data, sdi);
^
In file included from ../../libsigrok.h:1096:0,
from demo.c:32:
../../proto.h:123:12: note: expected 'sr_receive_data_callback_t {aka int (*)(int, int, const struct sr_dev_inst *)}' but argument is of type 'int (*)(int, int, const struct sr_dev_inst *)'
SR_API int sr_session_source_add_channel(GIOChannel *channel, int events,
^
demo.c: At top level:
demo.c:1104:16: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.config_set = config_set,
^
demo.c:1104:16: note: (near initialization for 'demo_driver_info.config_set')
CCLD libsigrok4DSL_hw_demo.la
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in common
CC libsigrok4DSL_hw_common_la-ezusb.lo
In file included from ezusb.c:30:0:
../../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CC libsigrok4DSL_hw_common_la-usb.lo
In file included from usb.c:23:0:
../../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CCLD libsigrok4DSL_hw_common.la
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in DSL
CC libsigrok4DSL_hw_dsl_la-command.lo
In file included from command.h:24:0,
from command.c:21:
../../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CC libsigrok4DSL_hw_dsl_la-dslogic.lo
In file included from dsl.h:25:0,
from dslogic.c:31:
../../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
dslogic.c: In function 'fpga_setting':
dslogic.c:380:33: warning: implicit declaration of function 'ds_trigger_get_mask0' [-Wimplicit-function-declaration]
setting.trig_mask0[0] = ds_trigger_get_mask0(TriggerStages);
^
dslogic.c:381:33: warning: implicit declaration of function 'ds_trigger_get_mask1' [-Wimplicit-function-declaration]
setting.trig_mask1[0] = ds_trigger_get_mask1(TriggerStages);
^
dslogic.c:383:34: warning: implicit declaration of function 'ds_trigger_get_value0' [-Wimplicit-function-declaration]
setting.trig_value0[0] = ds_trigger_get_value0(TriggerStages);
^
dslogic.c:384:34: warning: implicit declaration of function 'ds_trigger_get_value1' [-Wimplicit-function-declaration]
setting.trig_value1[0] = ds_trigger_get_value1(TriggerStages);
^
dslogic.c:386:33: warning: implicit declaration of function 'ds_trigger_get_edge0' [-Wimplicit-function-declaration]
setting.trig_edge0[0] = ds_trigger_get_edge0(TriggerStages);
^
dslogic.c:387:33: warning: implicit declaration of function 'ds_trigger_get_edge1' [-Wimplicit-function-declaration]
setting.trig_edge1[0] = ds_trigger_get_edge1(TriggerStages);
^
dslogic.c:432:32: warning: passing argument 3 of 'libusb_bulk_transfer' from incompatible pointer type [-Wincompatible-pointer-types]
&setting, sizeof(struct DSL_setting),
^
In file included from ../../libsigrok-internal.h:27:0,
from dsl.h:26,
from dslogic.c:31:
/usr/local/include/libusb-1.0/libusb.h:1704:17: note: expected 'unsigned char *' but argument is of type 'struct DSL_setting *'
int LIBUSB_CALL libusb_bulk_transfer(libusb_device_handle *dev_handle,
^
dslogic.c: In function 'fpga_config':
dslogic.c:461:15: warning: implicit declaration of function 'g_fopen' [-Wimplicit-function-declaration]
if ((fw = g_fopen(filename, "rb")) == NULL) {
^
dslogic.c:461:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if ((fw = g_fopen(filename, "rb")) == NULL) {
^
dslogic.c: In function 'adjust_probes':
dslogic.c:745:13: warning: unused variable 'p' [-Wunused-variable]
GSList *p;
^
dslogic.c:743:13: warning: unused variable 'l' [-Wunused-variable]
GSList *l;
^
dslogic.c: In function 'dev_mode_list':
dslogic.c:895:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < ARRAY_SIZE(pro_mode_list); i++) {
^
dslogic.c:899:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < ARRAY_SIZE(mode_list); i++) {
^
dslogic.c: In function 'dev_open':
dslogic.c:1043:13: warning: unused variable 'l' [-Wunused-variable]
GSList *l;
^
dslogic.c: In function 'config_set':
dslogic.c:1496:19: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
for(l = sdi->channels; l; l = l->next) {
^
dslogic.c:1531:19: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
for(l = sdi->channels; l; l = l->next) {
^
dslogic.c:1634:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < ARRAY_SIZE(stream_ch_modes); i++)
^
dslogic.c:1642:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < ARRAY_SIZE(buffer_ch_modes); i++)
^
dslogic.c:1722:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < ARRAY_SIZE(maxHeights); i++) {
^
dslogic.c:1829:66: warning: passing argument 2 of 'dso_cmd_gen' makes pointer from integer without a cast [-Wint-conversion]
ret = command_dso_ctrl(usb->devhdl, dso_cmd_gen(sdi, 1, SR_CONF_HORIZ_TRIGGERPOS));
^
dslogic.c:906:17: note: expected 'struct sr_channel *' but argument is of type 'int'
static uint64_t dso_cmd_gen(struct sr_dev_inst *sdi, struct sr_channel* ch, int id)
^
dslogic.c: In function 'abort_acquisition':
dslogic.c:1981:16: warning: implicit declaration of function 'command_stop_acquisition' [-Wimplicit-function-declaration]
if ((ret = command_stop_acquisition (usb->devhdl)) != SR_OK)
^
dslogic.c: In function 'finish_acquisition':
dslogic.c:2002:29: warning: unused variable 'usb' [-Wunused-variable]
struct sr_usb_dev_inst *usb;
^
dslogic.c:2001:12: warning: unused variable 'ret' [-Wunused-variable]
int i, ret;
^
dslogic.c: In function 'receive_transfer':
dslogic.c:2215:92: warning: left shift count >= width of type [-Wshift-count-overflow]
mstatus.ch0_period += *((const uint32_t*)cur_buf + mstatus_offset/2 + 4/2) << 32;
^
dslogic.c:2220:93: warning: left shift count >= width of type [-Wshift-count-overflow]
mstatus.ch1_period += *((const uint32_t*)cur_buf + mstatus_offset/2 + 12/2) << 32;
^
dslogic.c:2240:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mstatus.vlen <= (transfer->actual_length - 512) / sample_width) ||
^
dslogic.c:2265:25: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
analog.data = cur_buf + trigger_offset_bytes;
^
dslogic.c:2268:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((devc->limit_samples && devc->num_samples < devc->actual_samples) ||
^
dslogic.c:2276:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < logic.length / 2; i++) {
^
dslogic.c:2294:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < logic.length / 2; i++) {
^
dslogic.c: In function 'get_timeout':
dslogic.c:2369:18: warning: variable 'timeout' set but not used [-Wunused-but-set-variable]
unsigned int timeout;
^
dslogic.c: In function 'dev_transfer_start':
dslogic.c:2405:93: warning: signed and unsigned type in conditional expression [-Wsign-compare]
size = (sdi->mode == ANALOG) ? cons_buffer_size : ((sdi->mode == DSO) ? dso_buffer_size : get_buffer_size(devc));
^
dslogic.c:2405:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
size = (sdi->mode == ANALOG) ? cons_buffer_size : ((sdi->mode == DSO) ? dso_buffer_size : get_buffer_size(devc));
^
dslogic.c:2382:21: warning: unused variable 'timeout' [-Wunused-variable]
unsigned int i, timeout, num_transfers;
^
dslogic.c: In function 'receive_trigger_pos':
dslogic.c:2473:31: warning: unused variable 'analog' [-Wunused-variable]
struct sr_datafeed_analog analog;
^
dslogic.c:2472:28: warning: unused variable 'dso' [-Wunused-variable]
struct sr_datafeed_dso dso;
^
dslogic.c:2471:30: warning: unused variable 'logic' [-Wunused-variable]
struct sr_datafeed_logic logic;
^
dslogic.c: In function 'dev_acquisition_start':
dslogic.c:2567:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
devc->cb_data = sdi;
^
dslogic.c:2603:15: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
for(l = sdi->channels; l; l = l->next) {
^
dslogic.c:2605:61: warning: passing argument 1 of 'dso_cmd_gen' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
ret = command_dso_ctrl(usb->devhdl, dso_cmd_gen(sdi, probe, SR_CONF_COUPLING));
^
dslogic.c:906:17: note: expected 'struct sr_dev_inst *' but argument is of type 'const struct sr_dev_inst *'
static uint64_t dso_cmd_gen(struct sr_dev_inst *sdi, struct sr_channel* ch, int id)
^
dslogic.c:2610:61: warning: passing argument 1 of 'dso_cmd_gen' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
ret = command_dso_ctrl(usb->devhdl, dso_cmd_gen(sdi, probe, SR_CONF_VDIV));
^
dslogic.c:906:17: note: expected 'struct sr_dev_inst *' but argument is of type 'const struct sr_dev_inst *'
static uint64_t dso_cmd_gen(struct sr_dev_inst *sdi, struct sr_channel* ch, int id)
^
dslogic.c:2633:32: warning: passing argument 4 of 'sr_source_add' from incompatible pointer type [-Wincompatible-pointer-types]
get_timeout(devc), receive_data, sdi);
^
In file included from dsl.h:26:0,
from dslogic.c:31:
../../libsigrok-internal.h:115:13: note: expected 'sr_receive_data_callback_t {aka int (*)(int, int, const struct sr_dev_inst *)}' but argument is of type 'int (*)(int, int, const struct sr_dev_inst *)'
SR_PRIV int sr_source_add(int fd, int events, int timeout,
^
dslogic.c:2633:46: warning: passing argument 5 of 'sr_source_add' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
get_timeout(devc), receive_data, sdi);
^
In file included from dsl.h:26:0,
from dslogic.c:31:
../../libsigrok-internal.h:115:13: note: expected 'void *' but argument is of type 'const struct sr_dev_inst *'
SR_PRIV int sr_source_add(int fd, int events, int timeout,
^
dslogic.c:2652:37: warning: passing argument 4 of 'libusb_fill_bulk_transfer' from incompatible pointer type [-Wincompatible-pointer-types]
6 | LIBUSB_ENDPOINT_IN, trigger_pos, sizeof(struct ds_trigger_pos),
^
In file included from ../../libsigrok-internal.h:27:0,
from dsl.h:26,
from dslogic.c:31:
/usr/local/include/libusb-1.0/libusb.h:1533:20: note: expected 'unsigned char *' but argument is of type 'struct ds_trigger_pos *'
static inline void libusb_fill_bulk_transfer(struct libusb_transfer *transfer,
^
dslogic.c:2555:9: warning: unused variable 'header_transferred' [-Wunused-variable]
int header_transferred;
^
dslogic.c:2554:31: warning: unused variable 'packet' [-Wunused-variable]
struct sr_datafeed_packet packet;
^
dslogic.c:2553:9: warning: unused variable 'transferred' [-Wunused-variable]
int transferred;
^
dslogic.c:2543:71: warning: unused parameter 'cb_data' [-Wunused-parameter]
static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
^
dslogic.c: At top level:
dslogic.c:2746:16: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.config_set = config_set,
^
dslogic.c:2746:16: note: (near initialization for 'DSLogic_driver_info.config_set')
dslogic.c: In function 'adjust_probes':
dslogic.c:759:9: warning: ignoring return value of 'g_slist_delete_link', declared with attribute warn_unused_result [-Wunused-result]
g_slist_delete_link(sdi->channels, g_slist_last(sdi->channels));
^
dslogic.c: In function 'config_set':
dslogic.c:1842:12: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (ret == SR_OK)
^
dslogic.c:1492:9: warning: 'num_probes' may be used uninitialized in this function [-Wmaybe-uninitialized]
set_probes(sdi, num_probes);
^
CC libsigrok4DSL_hw_dsl_la-dscope.lo
In file included from dsl.h:25:0,
from dscope.c:31:
../../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
dscope.c: In function 'fpga_setting':
dscope.c:272:33: warning: implicit declaration of function 'ds_trigger_get_mask0' [-Wimplicit-function-declaration]
setting.trig_mask0[0] = ds_trigger_get_mask0(TriggerStages);
^
dscope.c:273:33: warning: implicit declaration of function 'ds_trigger_get_mask1' [-Wimplicit-function-declaration]
setting.trig_mask1[0] = ds_trigger_get_mask1(TriggerStages);
^
dscope.c:275:34: warning: implicit declaration of function 'ds_trigger_get_value0' [-Wimplicit-function-declaration]
setting.trig_value0[0] = ds_trigger_get_value0(TriggerStages);
^
dscope.c:276:34: warning: implicit declaration of function 'ds_trigger_get_value1' [-Wimplicit-function-declaration]
setting.trig_value1[0] = ds_trigger_get_value1(TriggerStages);
^
dscope.c:278:33: warning: implicit declaration of function 'ds_trigger_get_edge0' [-Wimplicit-function-declaration]
setting.trig_edge0[0] = ds_trigger_get_edge0(TriggerStages);
^
dscope.c:279:33: warning: implicit declaration of function 'ds_trigger_get_edge1' [-Wimplicit-function-declaration]
setting.trig_edge1[0] = ds_trigger_get_edge1(TriggerStages);
^
dscope.c:324:32: warning: passing argument 3 of 'libusb_bulk_transfer' from incompatible pointer type [-Wincompatible-pointer-types]
&setting, sizeof(struct DSL_setting),
^
In file included from ../../libsigrok-internal.h:27:0,
from dsl.h:26,
from dscope.c:31:
/usr/local/include/libusb-1.0/libusb.h:1704:17: note: expected 'unsigned char *' but argument is of type 'struct DSL_setting *'
int LIBUSB_CALL libusb_bulk_transfer(libusb_device_handle *dev_handle,
^
dscope.c: In function 'fpga_config':
dscope.c:353:15: warning: implicit declaration of function 'g_fopen' [-Wimplicit-function-declaration]
if ((fw = g_fopen(filename, "rb")) == NULL) {
^
dscope.c:353:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if ((fw = g_fopen(filename, "rb")) == NULL) {
^
dscope.c: In function 'adjust_probes':
dscope.c:635:13: warning: unused variable 'p' [-Wunused-variable]
GSList *p;
^
dscope.c:633:13: warning: unused variable 'l' [-Wunused-variable]
GSList *l;
^
dscope.c: In function 'dev_mode_list':
dscope.c:781:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < ARRAY_SIZE(mode_list); i++) {
^
dscope.c: In function 'config_set':
dscope.c:1554:66: warning: passing argument 2 of 'dso_cmd_gen' makes pointer from integer without a cast [-Wint-conversion]
ret = command_dso_ctrl(usb->devhdl, dso_cmd_gen(sdi, 1, SR_CONF_HORIZ_TRIGGERPOS));
^
dscope.c:788:17: note: expected 'struct sr_channel *' but argument is of type 'int'
static uint64_t dso_cmd_gen(struct sr_dev_inst *sdi, struct sr_channel* ch, int id)
^
dscope.c: In function 'abort_acquisition':
dscope.c:1688:16: warning: implicit declaration of function 'command_stop_acquisition' [-Wimplicit-function-declaration]
if ((ret = command_stop_acquisition (usb->devhdl)) != SR_OK)
^
dscope.c: In function 'finish_acquisition':
dscope.c:1709:29: warning: unused variable 'usb' [-Wunused-variable]
struct sr_usb_dev_inst *usb;
^
dscope.c:1708:12: warning: unused variable 'ret' [-Wunused-variable]
int i, ret;
^
dscope.c: In function 'receive_transfer':
dscope.c:1969:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mstatus.vlen <= (transfer->actual_length - 512) / sample_width) ||
^
dscope.c:1995:25: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
analog.data = cur_buf + trigger_offset_bytes;
^
dscope.c:2005:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < logic.length / 2; i++) {
^
dscope.c:2022:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < logic.length / 2; i++) {
^
dscope.c:1786:29: warning: unused variable 'meta' [-Wunused-variable]
struct sr_datafeed_meta meta;
^
dscope.c: In function 'dev_transfer_start':
dscope.c:2116:21: warning: variable 'timeout' set but not used [-Wunused-but-set-variable]
unsigned int i, timeout, num_transfers;
^
dscope.c: In function 'receive_trigger_pos':
dscope.c:2214:31: warning: unused variable 'analog' [-Wunused-variable]
struct sr_datafeed_analog analog;
^
dscope.c:2213:28: warning: unused variable 'dso' [-Wunused-variable]
struct sr_datafeed_dso dso;
^
dscope.c:2212:30: warning: unused variable 'logic' [-Wunused-variable]
struct sr_datafeed_logic logic;
^
dscope.c: In function 'dev_acquisition_start':
dscope.c:2300:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
devc->cb_data = sdi;
^
dscope.c:2365:32: warning: passing argument 4 of 'sr_source_add' from incompatible pointer type [-Wincompatible-pointer-types]
get_timeout(devc), receive_data, sdi);
^
In file included from dsl.h:26:0,
from dscope.c:31:
../../libsigrok-internal.h:115:13: note: expected 'sr_receive_data_callback_t {aka int (*)(int, int, const struct sr_dev_inst *)}' but argument is of type 'int (*)(int, int, const struct sr_dev_inst *)'
SR_PRIV int sr_source_add(int fd, int events, int timeout,
^
dscope.c:2365:46: warning: passing argument 5 of 'sr_source_add' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
get_timeout(devc), receive_data, sdi);
^
In file included from dsl.h:26:0,
from dscope.c:31:
../../libsigrok-internal.h:115:13: note: expected 'void *' but argument is of type 'const struct sr_dev_inst *'
SR_PRIV int sr_source_add(int fd, int events, int timeout,
^
dscope.c:2384:37: warning: passing argument 4 of 'libusb_fill_bulk_transfer' from incompatible pointer type [-Wincompatible-pointer-types]
6 | LIBUSB_ENDPOINT_IN, trigger_pos, sizeof(struct ds_trigger_pos),
^
In file included from ../../libsigrok-internal.h:27:0,
from dsl.h:26,
from dscope.c:31:
/usr/local/include/libusb-1.0/libusb.h:1533:20: note: expected 'unsigned char *' but argument is of type 'struct ds_trigger_pos *'
static inline void libusb_fill_bulk_transfer(struct libusb_transfer *transfer,
^
dscope.c:2288:9: warning: unused variable 'header_transferred' [-Wunused-variable]
int header_transferred;
^
dscope.c:2287:31: warning: unused variable 'packet' [-Wunused-variable]
struct sr_datafeed_packet packet;
^
dscope.c:2286:9: warning: unused variable 'transferred' [-Wunused-variable]
int transferred;
^
dscope.c:2276:71: warning: unused parameter 'cb_data' [-Wunused-parameter]
static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
^
dscope.c: At top level:
dscope.c:2473:16: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.config_set = config_set,
^
dscope.c:2473:16: note: (near initialization for 'DSCope_driver_info.config_set')
dscope.c:1764:27: warning: 'new_config' defined but not used [-Wunused-function]
static struct sr_config * new_config(int key, GVariant *data)
^
dscope.c: In function 'adjust_probes':
dscope.c:649:9: warning: ignoring return value of 'g_slist_delete_link', declared with attribute warn_unused_result [-Wunused-result]
g_slist_delete_link(sdi->channels, g_slist_last(sdi->channels));
^
dscope.c: In function 'config_set':
dscope.c:1567:12: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (ret == SR_OK)
^
dscope.c:1391:9: warning: 'num_probes' may be used uninitialized in this function [-Wmaybe-uninitialized]
set_probes(sdi, num_probes);
^
CCLD libsigrok4DSL_hw_dsl.la
ar: `u' modifier ignored since `D' is the default (see `U')
CCLD libsigrok4DSLhardware.la
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in input
CC libsigrok4DSLinput_la-in_binary.lo
In file included from in_binary.c:26:0:
../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CC libsigrok4DSLinput_la-in_vcd.lo
In file included from in_vcd.c:64:0:
../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
in_vcd.c: In function 'format_match':
in_vcd.c:302:12: warning: implicit declaration of function 'g_fopen' [-Wimplicit-function-declaration]
file = g_fopen(filename, "r");
^
in_vcd.c:302:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
file = g_fopen(filename, "r");
^
in_vcd.c: In function 'loadfile':
in_vcd.c:567:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if ((file = g_fopen(filename, "r")) == NULL)
^
CC libsigrok4DSLinput_la-in_wav.lo
In file included from in_wav.c:25:0:
../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CC libsigrok4DSLinput_la-input.lo
In file included from input.c:20:0:
../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CCLD libsigrok4DSLinput.la
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in output
CC libsigrok4DSLoutput_la-output.lo
In file included from output.c:21:0:
../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
output.c: In function 'sr_output_new':
output.c:259:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
op->module = omod;
^
output.c:260:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
op->sdi = sdi;
^
CC libsigrok4DSLoutput_la-csv.lo
In file included from csv.c:25:0:
../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
csv.c: In function 'receive':
csv.c:239:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < dso->num_samples; i++) {
^
CC libsigrok4DSLoutput_la-vcd.lo
In file included from vcd.c:26:0:
../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CC libsigrok4DSLoutput_la-gnuplot.lo
In file included from gnuplot.c:25:0:
../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CC libsigrok4DSLoutput_la-srzip.lo
In file included from srzip.c:27:0:
../libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
../libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CCLD libsigrok4DSLoutput.la
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in tests
make[2]: Nothing to be done for 'all'.
CC backend.lo
In file included from backend.c:23:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
backend.c: In function 'sanity_check_all_output_modules':
backend.c:269:10: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
outputs = sr_output_list();
^
CC dsdevice.lo
In file included from dsdevice.c:23:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CC session.lo
In file included from session.c:25:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
session.c: In function '_sr_session_source_add':
session.c:614:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
s->cb_data = sdi;
^
CC session_file.lo
In file included from session_file.c:30:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
session_file.c: In function 'sr_session_load':
session_file.c:219:49: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=]
snprintf(probename, SR_MAX_PROBENAME_LEN, "%" PRIu64, p);
^
session_file.c:219:49: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=]
session_file.c:128:44: warning: unused variable 's' [-Wunused-variable]
char **sections, **keys, *metafile, *val, s[11];
^
session_file.c:124:28: warning: unused variable 'k' [-Wunused-variable]
int ret, devcnt, i, j, k;
^
session_file.c: In function 'sr_session_save':
session_file.c:389:23: warning: format '%d' expects argument of type 'int', but argument 3 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
fprintf(meta, "hDiv = %d\n", timeBase);
^
session_file.c:403:31: warning: format '%d' expects argument of type 'int', but argument 4 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
fprintf(meta, " vDiv%d = %d\n", probe->index, probe->vdiv);
^
session_file.c:408:39: warning: format '%d' expects argument of type 'int', but argument 4 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
fprintf(meta, " period%d = %d\n", probe->index, status.ch0_period);
^
session_file.c:413:39: warning: format '%d' expects argument of type 'int', but argument 4 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
fprintf(meta, " period%d = %d\n", probe->index, status.ch1_period);
^
session_file.c:343:36: warning: unused variable 'tmp_u64' [-Wunused-variable]
uint64_t samplerate, timeBase, tmp_u64;
^
session_file.c:341:24: warning: unused variable 'versrc' [-Wunused-variable]
struct zip_source *versrc, *metasrc, *logicsrc;
^
CC session_driver.lo
In file included from session_driver.c:26:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
session_driver.c: In function 'config_get':
session_driver.c:195:54: warning: unused parameter 'cg' [-Wunused-parameter]
const struct sr_channel_group *cg)
^
session_driver.c: In function 'config_set':
session_driver.c:270:54: warning: unused parameter 'cg' [-Wunused-parameter]
const struct sr_channel_group *cg)
^
session_driver.c: In function 'dev_acquisition_start':
session_driver.c:439:37: warning: passing argument 4 of 'sr_session_source_add' from incompatible pointer type [-Wincompatible-pointer-types]
sr_session_source_add(-1, 0, 0, receive_data, sdi);
^
In file included from libsigrok.h:1096:0,
from session_driver.c:26:
proto.h:119:12: note: expected 'sr_receive_data_callback_t {aka int (*)(int, int, const struct sr_dev_inst *)}' but argument is of type 'int (*)(int, int, const struct sr_dev_inst *)'
SR_API int sr_session_source_add(int fd, int events, int timeout,
^
session_driver.c:406:9: warning: unused parameter 'cb_data' [-Wunused-parameter]
void *cb_data)
^
session_driver.c: At top level:
session_driver.c:456:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.config_set = config_set,
^
session_driver.c:456:19: note: (near initialization for 'session_driver.config_set')
session_driver.c:457:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.config_list = config_list,
^
session_driver.c:457:20: note: (near initialization for 'session_driver.config_list')
session_driver.c: In function 'config_get':
session_driver.c:254:17: warning: 'vdev' may be used uninitialized in this function [-Wmaybe-uninitialized]
*data = g_variant_new_uint64(vdev->samplerate);
^
CC hwdriver.lo
In file included from hwdriver.c:27:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
hwdriver.c: In function 'sr_status_get':
hwdriver.c:420:43: warning: passing argument 1 of 'sdi->driver->dev_status_get' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
ret = sdi->driver->dev_status_get(sdi, status, begin, end);
^
hwdriver.c:420:43: note: expected 'struct sr_dev_inst *' but argument is of type 'const struct sr_dev_inst *'
CC filter.lo
In file included from filter.c:24:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CC strutil.lo
In file included from strutil.c:24:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CC log.lo
In file included from log.c:23:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CC trigger.lo
In file included from trigger.c:11:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from trigger.c:9:0:
trigger.c: In function 'ds_trigger_set_pos':
trigger.c:180:21: warning: comparison is always true due to limited range of data type [-Wtype-limits]
assert(position >= 0);
^
trigger.c: In function 'ds_trigger_get_mask0':
trigger.c:235:46: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
mask += (trigger->trigger0[stage][i] == 'X' | trigger->trigger0[stage][i] == 'C');
^
trigger.c: In function 'ds_trigger_get_mask1':
trigger.c:249:46: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
mask += (trigger->trigger1[stage][i] == 'X' | trigger->trigger1[stage][i] == 'C');
^
trigger.c: In function 'ds_trigger_get_value0':
trigger.c:263:47: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
value += (trigger->trigger0[stage][i] == '1' | trigger->trigger0[stage][i] == 'R');
^
trigger.c: In function 'ds_trigger_get_value1':
trigger.c:277:47: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
value += (trigger->trigger1[stage][i] == '1' | trigger->trigger1[stage][i] == 'R');
^
trigger.c: In function 'ds_trigger_get_edge0':
trigger.c:291:46: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
edge += (trigger->trigger0[stage][i] == 'R' | trigger->trigger0[stage][i] == 'F' |
^
trigger.c:292:46: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
trigger->trigger0[stage][i] == 'C');
^
trigger.c: In function 'ds_trigger_get_edge1':
trigger.c:306:46: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
edge += (trigger->trigger1[stage][i] == 'R' | trigger->trigger1[stage][i] == 'F' |
^
trigger.c:307:46: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
trigger->trigger1[stage][i] == 'C');
^
CC version.lo
In file included from version.c:21:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CC error.lo
In file included from error.c:21:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CC std.lo
In file included from std.c:22:0:
libsigrok.h:154:77: warning: 'struct sr_dev_inst' declared inside parameter list
typedef int (*sr_receive_data_callback_t)(int fd, int revents, const struct sr_dev_inst *sdi);
^
libsigrok.h:154:77: warning: its scope is only this definition or declaration, which is probably not what you want
CCLD libsigrok4DSL.la
ar: `u' modifier ignored since `D' is the default (see `U')
I made a video to demonstrate this issue: https://youtu.be/bjITW4hfILs
Please ask me if you want me to practice some more experiment ...
Please try 0.97 version
I compiled the current sources (0.95) and I experiment the following issue.
As soon as I request the "decoder" tab, the following message appears in the shell.
I don't know if this issue is linked to the following one but: I am not able to use any decoder under ubuntu. (it works under my windows computer) ...