Bug 241622

Summary: misc/iio-oscilloscope: fix build on GCC architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Piotr Kubaj <pkubaj>
Status: Closed FIXED    
Severity: Affects Only Me CC: yuri
Priority: --- Flags: yuri: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch yuri: maintainer-approval+

Description Piotr Kubaj freebsd_committer 2019-10-31 18:19:32 UTC
Created attachment 208744 [details]
patch

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
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-11-03 16:32:40 UTC
Approved as mentor.
Comment 2 commit-hook freebsd_committer 2019-11-05 08:33:29 UTC
A commit references this bug:

Author: pkubaj
Date: Tue Nov  5 08:33:15 UTC 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)

Changes:
  head/misc/iio-oscilloscope/files/
  head/misc/iio-oscilloscope/files/patch-osc.c
  head/misc/iio-oscilloscope/files/patch-plugins_lidar.c