From nobody Sun Apr 09 21:35:35 2023 X-Original-To: dev-commits-src-branches@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 4PvllF5qfNz44JKw; Sun, 9 Apr 2023 21:35:37 +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 4PvllD503gz4Mjj; Sun, 9 Apr 2023 21:35:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681076137; 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=Ovg3J0X9ujSRyL2YYum1yisJp5A0RcPz47anhX++k3A=; b=MmhlbYpEQKqMBlUbWAMn86QsLoZOrPPmIi4ruHcZTp8kjAIFV8DEgQNtzizi55vbc86/D9 Vjjbb69xG0gTsHqqLwdoC+IbCSad1hBGK7mWNt4XNO7tLnlnU9Wl7q//tHdYcKMlw59+VS /lt7Z3KaTWe6QJSP/FB1q0NaLuoP6TiHkCxP2TbsdFdImyQkeyQg5tVZXHJEFzyN/DegWe 9xfCNhkEipNOyYpKZthSO1i+5m0nfrtOraSPGTU50vG8lr0liAhuU+0EMy49Ox0cWtOh/2 FMOEww1gCj/Jr3JVN8DX1YDZBWH/ju29WCbUXQJHVlbaiefmWPqlOjEIXYl2Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681076137; 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=Ovg3J0X9ujSRyL2YYum1yisJp5A0RcPz47anhX++k3A=; b=Eylv5b38XQADc3TiBnXQFL5QtPelKq4lGtHC3YHmBBVSts5PMwzgHPePBSnOieUv7QCBAS c+DUfc/TSKyLA3HNwkNWi0XmASx2dd3ESxeX0ni9l9oLsmct9kIdddei4pnJG4E+HS3gFA E3uzKgh+eS2bbwbGCLoKPP/dn226AsPe+fpVbwTY4KfdJ8SAt8OiMiiZz0/LHqJvXqjY+K sCgeNBL7JYfC5E6jPcAkI+ela+xpqYR3bAu+LkeDXObf+nYF79rgwbTSE4OXwqvRHP86RB gT5bCt6rs7bc6dBkKNqWTO2Fh6kwTLexokpmlLE0uyVVaV1C5ccuYcV504P9fQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681076137; a=rsa-sha256; cv=none; b=n0bx/So1FPH44KL/CNvUAPAKI43797LiIscziUBRAycIiC2FOoRS0twCO2XXkYhWxZ9uHy ROK7xVKxahp4Gcgwfh09WAUj9rdCgsg5hS9O0IlIQ9odlF4t6MsJiJUxljv6pEA18f06QR cCm1iHhhOwdMXc963uE1gTMnN318E8Tx2PuFAdwzyIiJajOZjU4/SIthjojgG66mQm2WSJ zd4pzKvur7i2MDWZGurE0at8FIM2Tn+XygsMrio1kxo6DvF07j1IFCKaBigH0AOlvScEfQ G3Gn7hgjc4SfbQy10uzKE55lfHz1VxwwujpTFxZbaxvlyoBGTDbtqevcy2v10Q== 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 4PvllD0PwBzPF6; Sun, 9 Apr 2023 21:35:36 +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 339LZZKg081901; Sun, 9 Apr 2023 21:35:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 339LZZdT081900; Sun, 9 Apr 2023 21:35:35 GMT (envelope-from git) Date: Sun, 9 Apr 2023 21:35:35 GMT Message-Id: <202304092135.339LZZdT081900@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 29d88c3b0bfc - stable/13 - Update CWARNFLAGS in bsd.sys.mk and CWARNEXTRA in kern.mk for clang 15. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 29d88c3b0bfcd4974f7e84618bfb492ce88fffb1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=29d88c3b0bfcd4974f7e84618bfb492ce88fffb1 commit 29d88c3b0bfcd4974f7e84618bfb492ce88fffb1 Author: Dimitry Andric AuthorDate: 2022-07-25 10:29:58 +0000 Commit: Dimitry Andric CommitDate: 2023-04-09 15:37:03 +0000 Update CWARNFLAGS in bsd.sys.mk and CWARNEXTRA in kern.mk for clang 15. MFC after: 3 days (cherry picked from commit 526f57bf85a2b9b113c55ded47b932abc8567bc5) --- share/mk/bsd.sys.mk | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index b11ba2ddabcb..cb4399610d0e 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -49,8 +49,11 @@ CWARNFLAGS+= -Werror CWARNFLAGS+= -Wall -Wno-format-y2k .endif # WARNS >= 2 .if ${WARNS} >= 3 -CWARNFLAGS+= -W -Wno-unused-parameter -Wstrict-prototypes\ - -Wmissing-prototypes -Wpointer-arith +CWARNFLAGS+= -W -Wno-unused-parameter +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 150000 +CWARNFLAGS+= -Wstrict-prototypes +.endif +CWARNFLAGS+= -Wmissing-prototypes -Wpointer-arith .endif # WARNS >= 3 .if ${WARNS} >= 4 CWARNFLAGS+= -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow\ @@ -59,6 +62,11 @@ CWARNFLAGS+= -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow\ CWARNFLAGS+= -Wcast-align .endif # !NO_WCAST_ALIGN !NO_WCAST_ALIGN.${COMPILER_TYPE} .endif # WARNS >= 4 +.if ${WARNS} >= 5 +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000 +CWARNFLAGS+= -Wstrict-prototypes +.endif +.endif # WARNS >= 4 .if ${WARNS} >= 6 CWARNFLAGS+= -Wchar-subscripts -Wnested-externs \ -Wold-style-definition @@ -83,6 +91,11 @@ CWARNFLAGS.clang+= -Wno-unused-const-variable .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000 CWARNFLAGS.clang+= -Wno-error=unused-but-set-variable .endif +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000 +CWARNFLAGS.clang+= -Wno-error=array-parameter +CWARNFLAGS.clang+= -Wno-error=deprecated-non-prototype +CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter +.endif .endif # WARNS <= 6 .if ${WARNS} <= 3 CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\