[Bug 268260] devel/libgtop: fix build with clang 15

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 08 Dec 2022 22:44:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268260

            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>.

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