From owner-svn-ports-all@freebsd.org Tue Nov 5 08:33:16 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 020AB17C244; Tue, 5 Nov 2019 08:33:16 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 476jbv6Fldz413r; Tue, 5 Nov 2019 08:33:15 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BAF799FB5; Tue, 5 Nov 2019 08:33:15 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xA58XFD4061198; Tue, 5 Nov 2019 08:33:15 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xA58XFas061196; Tue, 5 Nov 2019 08:33:15 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201911050833.xA58XFas061196@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Tue, 5 Nov 2019 08:33:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r516779 - head/misc/iio-oscilloscope/files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/misc/iio-oscilloscope/files X-SVN-Commit-Revision: 516779 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2019 08:33:16 -0000 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); +