Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Dec 2022 22:44:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 268260] devel/libgtop: fix build with clang 15
Message-ID:  <bug-268260-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268260

            Bug ID: 268260
           Summary: devel/libgtop: fix build with clang 15
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: gnome@FreeBSD.org
             Flags: maintainer-feedback?(gnome@FreeBSD.org)

During an exp-run for llvm 15 (see bug 265425), it turned out that
devel/libgtop failed to build with clang 15:

  main.c:226:35: error: incompatible pointer to integer conversion passing
'char[1024]' to parameter of type 'pid_t' (aka 'int') [-Wint-conversion]
                  (server, &resp->u.data.proc_io, parameter);
                                                  ^~~~~~~~~
  ../../include/glibtop/procio.h:78:74: note: passing argument to parameter
'pid' here
  void glibtop_get_proc_io_l (glibtop *server, glibtop_proc_io *buf, pid_t
pid);
                                                                           ^

Indeed the parameter is supposed to be a pid_t, and upstream fixed this in
<https://gitlab.gnome.org/GNOME/libgtop/-/commit/df6393ac>.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268260-7788>