From nobody Wed Jun 21 19:29:03 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QmYTW2Ztmz4gSBj for ; Wed, 21 Jun 2023 19:29:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QmYTW1Y1Lz4B80 for ; Wed, 21 Jun 2023 19:29:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687375743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=F+zU+99PcPgB5jXPoO86A2TJKfOTJqj35RHwBIRzT8Q=; b=kECPPa+pG/GiP3YfofagbVddeqxewptUkohCLKnD1aivoLDYYEsqQzpPflI9+8lA9Qr9An naNmSyGji/2ODUffo519Z7KOCZIn0Rkct7qAtqyqab7pdqvEWggCU2NTSqQW8qlZn0c42G 6NzZ0BDR6t55rPIOgHTtZ4JrXS0ybeIY25p1BxIHbsxHpmk+LOGazZ05BuO+SKsFjLXrdd efG4k25uPM6kaRSmElJAT1qGv/iDuMkjbB2rDsLay7vVLt377FnwHsY+thxNGVr/uDIDS9 Fa2vSf/Id2Kdso3WJ1p0jfSFrhw0TPrxZiLUsEzjqzdES7s+SmJMo/zLwLlL0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687375743; a=rsa-sha256; cv=none; b=r2an0uoaLFqkzdqdCj6lI1iM45cuhB9Of2vA8PUceVW42gXgqWifWxKNzjrAE1hyzY6vZe loE89V1QqxjFDf8jdm1WgnHDVAbAjlXGpmvAEZjyvZPRkwZ26fZof9pwL7mI92h95Fl6Hn vc4ncjurxuUdZ95v/pbHB1/oVCeAwTIiOlBKnjv/tGe9iDA7u0UhHhTmu3ZZzBmFo5NRwJ ncg8LPQjhAAQ3ZFghM29jCrNOqlGyfD15SyHpRjwKPreRMw4wTZxAWkeerERDDPGulhb2g P1O5Sk0S8K5G+DZEeleUQpyoh2XWlR8rz+XXdQN5WB4Wgo2ZziIWQ5x87ZUiAA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QmYTW0WlJztS7 for ; Wed, 21 Jun 2023 19:29:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 35LJT3XX026024 for ; Wed, 21 Jun 2023 19:29:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35LJT3g8026023 for ports-bugs@FreeBSD.org; Wed, 21 Jun 2023 19:29:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 272136] textproc/discount: fix build with clang 16 Date: Wed, 21 Jun 2023 19:29:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sunpoet@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272136 Bug ID: 272136 Summary: textproc/discount: fix build with clang 16 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Assignee: sunpoet@FreeBSD.org Clang 16 has a new error about incompatible function types, which shows up when textproc/discount: main.c:311:29: error: incompatible function pointer types passing 'char *(char *, int, char *)' to parameter of type 'mkd_callback_t' (aka 'char *(*)(const char *, const int, void *)') [-Wincompatible-function-pointer-ty= pes] mkd_e_code_format(doc, external_codefmt); ^~~~~~~~~~~~~~~~ ./mkdio.h:71:45: note: passing argument to parameter here void mkd_e_code_format(void*, mkd_callback_t); ^ This is is because the callback function's prototype does not match the mkd_callback_t type. The program is rather sloppy with how it passes parameters around, and just before this particular callback assignment it casts the parameter to the desired type, so also do that here. --=20 You are receiving this mail because: You are the assignee for the bug.=