diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-10-21 20:54:05 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-10-21 20:54:05 +0000 |
commit | 26ba2bb59c98a45cf1c437c9001fed1681cae95d (patch) | |
tree | 3914bf3f7286f6744049574b30f2a4bea54831c2 /misc | |
parent | graphics/waifu2x-ncnn-vulkan: fix build on powerpc* (diff) |
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)
Notes
Notes:
svn path=/head/; revision=552897
Diffstat (limited to 'misc')
-rw-r--r-- | misc/iio-oscilloscope/Makefile | 2 | ||||
-rw-r--r-- | misc/iio-oscilloscope/files/patch-osc.c | 11 | ||||
-rw-r--r-- | misc/iio-oscilloscope/files/patch-plugins_lidar.c | 11 |
3 files changed, 1 insertions, 23 deletions
diff --git a/misc/iio-oscilloscope/Makefile b/misc/iio-oscilloscope/Makefile index 383c4622337c..26379ca80148 100644 --- a/misc/iio-oscilloscope/Makefile +++ b/misc/iio-oscilloscope/Makefile @@ -23,7 +23,7 @@ LIB_DEPENDS= libad9361.so:misc/libad9361-iio \ libjansson.so:devel/jansson \ libmatio.so:math/matio -USES= cmake gnome localbase:ldflags pkgconfig +USES= cmake compiler:c11 gnome localbase:ldflags pkgconfig USE_GITHUB= yes GH_ACCOUNT= analogdevicesinc USE_GNOME= atk cairo gdkpixbuf2 gtk20 libxml2 pango diff --git a/misc/iio-oscilloscope/files/patch-osc.c b/misc/iio-oscilloscope/files/patch-osc.c deleted file mode 100644 index b078db2d8fde..000000000000 --- a/misc/iio-oscilloscope/files/patch-osc.c +++ /dev/null @@ -1,11 +0,0 @@ ---- 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 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); - |