From 26ba2bb59c98a45cf1c437c9001fed1681cae95d Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Wed, 21 Oct 2020 20:54:05 +0000 Subject: misc/iio-oscilloscope: fix build on GCC architectures Use C11 compiler: cc1: warnings being treated as errors In file included from /usr/local/include/glib-2.0/glib/gthread.h:34, from /usr/local/include/glib-2.0/glib/gasyncqueue.h:32, from /usr/local/include/glib-2.0/glib.h:32, from /usr/local/include/glib-2.0/gmodule.h:28, from /wrkdirs/usr/ports/misc/iio-oscilloscope/work/iio-oscilloscope-0.11-master/iio_utils.h:11, from /wrkdirs/usr/ports/misc/iio-oscilloscope/work/iio-oscilloscope-0.11-master/iio_utils.c:1: /usr/local/include/glib-2.0/glib/gutils.h:336: warning: 'GVoidFunc' is deprecated Also remove previous patches that fixed build with base GCC of previous version of the port. MFH: 2020Q4 (fix build blanket) --- misc/iio-oscilloscope/files/patch-plugins_lidar.c | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 misc/iio-oscilloscope/files/patch-plugins_lidar.c (limited to 'misc/iio-oscilloscope/files/patch-plugins_lidar.c') diff --git a/misc/iio-oscilloscope/files/patch-plugins_lidar.c b/misc/iio-oscilloscope/files/patch-plugins_lidar.c deleted file mode 100644 index e6bc058af0f6..000000000000 --- a/misc/iio-oscilloscope/files/patch-plugins_lidar.c +++ /dev/null @@ -1,11 +0,0 @@ ---- 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); - -- cgit v1.2.3