From nobody Mon May 15 14:36:54 2023 X-Original-To: dev-commits-ports-all@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 4QKhlV6lD7z4BhF2; Mon, 15 May 2023 14:36:54 +0000 (UTC) (envelope-from git@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 4QKhlV6Fqbz4krj; Mon, 15 May 2023 14:36:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684161414; 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=1Umk+QEgi9/B29v7SN23IKigStN3t4ojo2sYRccTsjg=; b=SPOKXfiGMQFpwDFbo6MbJHiXtajcCPRfon7a8BMC6g1nD5pIhwO2fmpngGenNPGZHTYQ7o mDd4XhmvO5xZwbe0ryjlRnqKqNKNOOoUBslHqOZQU6h1slD6G7wx+haGZTPc9XwfsHuQuo mD083Jb6isluQV8rtLp4JBlnQsNBcC7KzhOvN3yTAbNPpvtl3we7IJXSelIP6zKPjFInhT q3ofbSpgMrk4GablN+HJHGB2pGmiLiDWpruMn83NfZwpnic938qHG6I4PywYnprVpHbuMK FylH3tEE0EcmuLt2k5aqmcL6n5YStpINmnds4IvETavHTvewJEHnw5IUG21Mlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684161414; 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=1Umk+QEgi9/B29v7SN23IKigStN3t4ojo2sYRccTsjg=; b=keROUGfVEuCpuNR0kUhpi5rJySlFFWwlLKYvQ17GoXoSRXPkn+IDPDSqR8geY8Nv2nxgk1 5DE1iyKDQI84xo2M+41AYjwroLx6RvUsRaa047OMUaJYslU7G4c+htUSYHfVjpc+nGABFM aHGl/yzJtQ1WaT/Q1gCVUDNE+PV1g9vTt1xoCp2l3dvrX+dIavkHeqbAPA40xRvj5dyjmN z8gQ2dWxDgQXAbKil8usbJSpjEVnAADiSc2BHuKqb76+Na9/W2vt4Kf4H1gs35uNOFZK0s 2sNAMWo2yneiXRrom3UilNg0nzaridCBSS3BGWZZmGplQZBlXJGrqebxBFOnCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684161414; a=rsa-sha256; cv=none; b=GxUnF494w8Tq8a/YvVQJe9Jk5ZKVFyKH0yPWQFMRpesPpVxHZQrqvn5g+5nmo4/ISv8Eu7 IxZBndOpF/Pc3tFkYI2/wWFdIIgVbjbvMu6YA2asWxQg6uK84y3VqpFiQqBGnh07Nlzsfq xBejMRJob7WYVD8BThlMjZex4uzx5CezIhwgnwkXJBkstrYWZt0HubkOqxfIDsoWVA6BBO M3FGnj3zn6snIZF1R46DRxwZhUEgP0IGD9b1cWnlzvs8/X97dIKeWykKn53z75o3HOziw3 aEBq2Op1paLOEahRqJy4/984Du3c5CFsfylyk/bAlncztzWWEl05Zg21dDS2Ug== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4QKhlV51dxzkls; Mon, 15 May 2023 14:36:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34FEasXK058027; Mon, 15 May 2023 14:36:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34FEasxl058026; Mon, 15 May 2023 14:36:54 GMT (envelope-from git) Date: Mon, 15 May 2023 14:36:54 GMT Message-Id: <202305151436.34FEasxl058026@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Cy Schubert Subject: git: 72d0d9b5dad6 - main - x11-toolkits/open-motif*: fix build with clang 16 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 72d0d9b5dad67545e571057abd8d59166ce247b2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=72d0d9b5dad67545e571057abd8d59166ce247b2 commit 72d0d9b5dad67545e571057abd8d59166ce247b2 Author: Dimitry Andric AuthorDate: 2023-05-15 14:17:12 +0000 Commit: Cy Schubert CommitDate: 2023-05-15 14:36:17 +0000 x11-toolkits/open-motif*: fix build with clang 16 Clang 16 has a new error about incompatible function types, which shows up when building x11-toolkits/open-motif: WmError.c:134:24: error: incompatible function pointer types passing 'void (char *)' to parameter of type 'void (*)(String) __attribute__((noreturn))' (aka 'void (*)(char *) __attribute__((noreturn))') [-Wincompatible-function-pointer-types] XtSetErrorHandler (WmXtErrorHandler); ^~~~~~~~~~~~~~~~ /usr/local/include/X11/Intrinsic.h:1776:1: note: passing argument to parameter here ); ^ In this case the declaration of the callback function for XtSetErrorHandler() shoud have a noreturn attribute, specifically using the _X_NORETURN macro. PR: 271425 --- .../open-motif-devel/files/patch-clients_mwm_WmError.h | 11 +++++++++++ x11-toolkits/open-motif/files/patch-clients_mwm_WmError.h | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/x11-toolkits/open-motif-devel/files/patch-clients_mwm_WmError.h b/x11-toolkits/open-motif-devel/files/patch-clients_mwm_WmError.h new file mode 100644 index 000000000000..c25975f099a8 --- /dev/null +++ b/x11-toolkits/open-motif-devel/files/patch-clients_mwm_WmError.h @@ -0,0 +1,11 @@ +--- clients/mwm/WmError.h.orig 2017-08-17 00:38:43 UTC ++++ clients/mwm/WmError.h +@@ -32,7 +32,7 @@ extern int WmXIOErrorHandler (Display *display); + extern void WmInitErrorHandler (Display *display); + extern int WmXErrorHandler (Display *display, XErrorEvent *errorEvent); + extern int WmXIOErrorHandler (Display *display); +-extern void WmXtErrorHandler (char *message); ++extern void WmXtErrorHandler (char *message) _X_NORETURN; + extern void WmXtWarningHandler (char *message); + extern void Warning (char *message); + #ifndef NO_MESSAGE_CATALOG diff --git a/x11-toolkits/open-motif/files/patch-clients_mwm_WmError.h b/x11-toolkits/open-motif/files/patch-clients_mwm_WmError.h new file mode 100644 index 000000000000..c25975f099a8 --- /dev/null +++ b/x11-toolkits/open-motif/files/patch-clients_mwm_WmError.h @@ -0,0 +1,11 @@ +--- clients/mwm/WmError.h.orig 2017-08-17 00:38:43 UTC ++++ clients/mwm/WmError.h +@@ -32,7 +32,7 @@ extern int WmXIOErrorHandler (Display *display); + extern void WmInitErrorHandler (Display *display); + extern int WmXErrorHandler (Display *display, XErrorEvent *errorEvent); + extern int WmXIOErrorHandler (Display *display); +-extern void WmXtErrorHandler (char *message); ++extern void WmXtErrorHandler (char *message) _X_NORETURN; + extern void WmXtWarningHandler (char *message); + extern void Warning (char *message); + #ifndef NO_MESSAGE_CATALOG