diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-11-05 08:33:15 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-11-05 08:33:15 +0000 |
commit | 9079526663b0ebb3f1f8ba8baaee6868abadc50e (patch) | |
tree | 4c6dcca51202222d54a1f56d4f5cbd3cb07c7de9 /misc/iio-oscilloscope | |
parent | 90ce791acb6b6e16d5cf758bcb8e41c2f3afdcca (diff) | |
download | ports-9079526663b0ebb3f1f8ba8baaee6868abadc50e.tar.gz ports-9079526663b0ebb3f1f8ba8baaee6868abadc50e.zip |
misc/iio-oscilloscope: fix build on GCC architectures
Build fails with base GCC:
cc1: warnings being treated as errors
/wrkdirs/usr/ports/misc/iio-oscilloscope/work/iio-oscilloscope-0.10-master-28-g9b9a441/osc.c: In function 'plugin_data_capture_of_plot':
/wrkdirs/usr/ports/misc/iio-oscilloscope/work/iio-oscilloscope-0.10-master-28-g9b9a441/osc.c:576: warning: 'markers_lock' may be used uninitialized in this function
PR: 241622
Approved by: yuri (maintainer), linimon (mentor)
Notes
Notes:
svn path=/head/; revision=516779
Diffstat (limited to 'misc/iio-oscilloscope')
-rw-r--r-- | misc/iio-oscilloscope/files/patch-osc.c | 11 | ||||
-rw-r--r-- | misc/iio-oscilloscope/files/patch-plugins_lidar.c | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/misc/iio-oscilloscope/files/patch-osc.c b/misc/iio-oscilloscope/files/patch-osc.c new file mode 100644 index 000000000000..b078db2d8fde --- /dev/null +++ b/misc/iio-oscilloscope/files/patch-osc.c @@ -0,0 +1,11 @@ +--- osc.c.orig 2019-10-31 18:10:02 UTC ++++ osc.c +@@ -573,7 +573,7 @@ int plugin_data_capture_of_plot(OscPlot *plot, const c + struct iio_device *dev, *tmp_dev = NULL; + struct extra_dev_info *dev_info; + struct marker_type *markers_copy = NULL; +- GMutex *markers_lock; ++ GMutex *markers_lock = NULL; + unsigned int i, j; + bool new = FALSE; + const char *tmp = NULL; diff --git a/misc/iio-oscilloscope/files/patch-plugins_lidar.c b/misc/iio-oscilloscope/files/patch-plugins_lidar.c new file mode 100644 index 000000000000..e6bc058af0f6 --- /dev/null +++ b/misc/iio-oscilloscope/files/patch-plugins_lidar.c @@ -0,0 +1,11 @@ +--- plugins/lidar.c.orig 2019-10-31 18:10:53 UTC ++++ plugins/lidar.c +@@ -112,7 +112,7 @@ static void auto_cfg_set_cb(void) + static void auto_cfg_button_changed_cb(GtkSpinButton *btn) + { + // Force the buttons value to have a valid permutation of (0, 1, 2, 3) +- int i, j, idx; ++ int i, j, idx = 0; + int old_val; + int crt_val = gtk_spin_button_get_value_as_int(btn); + |