svn commit: r516779 - head/misc/iio-oscilloscope/files

Piotr Kubaj pkubaj at FreeBSD.org
Tue Nov 5 08:33:16 UTC 2019


Author: pkubaj
Date: Tue Nov  5 08:33:15 2019
New Revision: 516779
URL: https://svnweb.freebsd.org/changeset/ports/516779

Log:
  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)

Added:
  head/misc/iio-oscilloscope/files/
  head/misc/iio-oscilloscope/files/patch-osc.c   (contents, props changed)
  head/misc/iio-oscilloscope/files/patch-plugins_lidar.c   (contents, props changed)

Added: head/misc/iio-oscilloscope/files/patch-osc.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/iio-oscilloscope/files/patch-osc.c	Tue Nov  5 08:33:15 2019	(r516779)
@@ -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;

Added: head/misc/iio-oscilloscope/files/patch-plugins_lidar.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/iio-oscilloscope/files/patch-plugins_lidar.c	Tue Nov  5 08:33:15 2019	(r516779)
@@ -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);
+ 


More information about the svn-ports-all mailing list