From nobody Thu May 25 14:12:15 2023 X-Original-To: dev-commits-src-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 4QRqkS1ZwMz4V2yZ; Thu, 25 May 2023 14:12:16 +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 4QRqkS14Jpz4Hcb; Thu, 25 May 2023 14:12:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685023936; 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=vjJuzVreU7V4Jbz3u6jy3Z+dr8K0YuLiC3DognPiGxc=; b=Xqcuzl4YpqYfE/J1BThd28RzxUit7xmDcpv0pQ183RNrsz+e8xv0iieZRcMwBgckq4WMIm V0s3SZL37e6RaMEGw0xOU7wNf3hWBipD1Gn8qCGw3WHwo+JP2jYIckwrV8f7cyPmtth2jf 8LMU/mLmmJwfV2YA/34geC4lMxRM1oZvF6ohlEHcxUCjGRMRSjYdgO5OZvZx+RcmMIFQj9 vLm31bF3hEsDZCzIJMbd1m2kWH042Tun3LsjW5356N2BC58OK4OF8O2V+IBHsbnwE0DNDY qlfh3SrYxcVputNVbo8KY+b8ZsmDuBCMsoYl7o1YEbD8BmVWiUVO9jfoR1HBmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685023936; 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=vjJuzVreU7V4Jbz3u6jy3Z+dr8K0YuLiC3DognPiGxc=; b=wqfhoWlSNPzKbWW8omCJlHWhuW+ThVyIkq2UZm61ygBg3/p1t5EXnb1hLh+Qo8J5bSjn+x KhlXmjgNa8ANq4bZylHqDC0Zpv0w9nSGakVsCkWH/awvz/b5YTVtHudby+Tpd3aPXRyWR6 plFV0Y2Z3FbbSErSal9zTuS3c9JJHWRaKSO5DPPk6aGti1417ZpbmPJM6lhy97ABXacEIg cWhJzMF8AeYd5REe52yJy5e3BI7r4stvbc8MQZOraVU5APRo7wzdbO4r0otKolOEM3USah fKroWhMYWnaSUqOHvhUY3Df9G7Ohe0st8OXngSJaiiGfysJaOUGhzoJWasUpvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685023936; a=rsa-sha256; cv=none; b=NAJz89oddByUOkjL9isjshi7y+/IyUE73I4Pe8ZOQPWNvsC3/JjclzcqAqw7B8IUpCw/2Z UbGBE/3WgVRDfGKxJx+aLaU7ceOxnMzqbD2iHi79w064/zNjg8hehYUhuwWuUVxooiJT91 wbEc94VSXrQzJgR64DFd6+RKvQMQpXk4OOC7+LVNcostjtvkWtByD7t9Hqk1+elbRLQ/9l g6Tg2w22UwD9JS5BNbymbKhBl+uAn0vTA1ILGlhYvFk7r3qPRyMBHIFUJoRM0CdngBOLGY ai6x5UjY6eTZ64eumEWQHKdRD/mt9Fz4d2Q0IJf+QGc/+932xUOZEnzowiTV9A== 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 4QRqkS0B2wzSVD; Thu, 25 May 2023 14:12:16 +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 34PECFaT045947; Thu, 25 May 2023 14:12:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34PECFem045946; Thu, 25 May 2023 14:12:15 GMT (envelope-from git) Date: Thu, 25 May 2023 14:12:15 GMT Message-Id: <202305251412.34PECFem045946@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 3dad1c6696d2 - main - Enable -Wstrict-prototypes for all clang versions at WARNS >= 3. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3dad1c6696d2b86d7c4662b509f09b91f7f1aed4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3dad1c6696d2b86d7c4662b509f09b91f7f1aed4 commit 3dad1c6696d2b86d7c4662b509f09b91f7f1aed4 Author: John Baldwin AuthorDate: 2023-05-25 14:11:38 +0000 Commit: John Baldwin CommitDate: 2023-05-25 14:11:38 +0000 Enable -Wstrict-prototypes for all clang versions at WARNS >= 3. Previously clang 15+ only enabled it for WARNS >= 5. PR: 271072 (exp-run) Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39732 --- share/mk/bsd.sys.mk | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 8141ed0661d1..b4a417236c65 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -50,7 +50,7 @@ CWARNFLAGS+= -Wall -Wno-format-y2k .endif # WARNS >= 2 .if ${WARNS} >= 3 CWARNFLAGS+= -W -Wno-unused-parameter -.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 150000 +.if ${COMPILER_TYPE} == "clang" CWARNFLAGS+= -Wstrict-prototypes .endif CWARNFLAGS+= -Wmissing-prototypes -Wpointer-arith @@ -62,11 +62,6 @@ 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