Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jun 2023 17:26:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 272209] x11/xdm: error: incompatible function pointer types (LLVM16)
Message-ID:  <bug-272209-7141-j8zxJ6TmiI@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-272209-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-272209-7141@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=3Dffa7085ab4121e92eb61c4e1f6a7138=
e7ea43d6a

commit ffa7085ab4121e92eb61c4e1f6a7138e7ea43d6a
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-06-25 18:26:57 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-06-28 17:25:30 +0000

    x11/xdm: fix build with clang 16

    Clang 16 has a new error about incompatible function types, which shows
    up when x11/xdm:

      greet.c:451:20: error: incompatible function pointer types assigning =
to
'void (*)(void)' from 'int (*)(void)' [-Wincompatible-function-pointer-type=
s]
          __xdm_setgrent =3D dlfuncs->_setgrent;
                         ^ ~~~~~~~~~~~~~~~~~~

    This is because it assumes setgrent(3) returns int, which it has not
    done since a very long time.

    Reported by:    O. Hartmann <ohartmann@walstatt.org>
    PR:             272209
    MFH:            2023Q2

 x11/xdm/Makefile                          |  1 +
 x11/xdm/files/patch-include_greet.h (new) | 11 +++++++++++
 2 files changed, 12 insertions(+)

--=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-272209-7141-j8zxJ6TmiI>