From nobody Fri Mar 22 10:40:31 2024 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 4V1Jkl6TMMz5DZlD; Fri, 22 Mar 2024 10:40:31 +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 4V1Jkl4dj5z4k7c; Fri, 22 Mar 2024 10:40:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711104031; 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=0Za1Yg2JgcriwnvGdLJMpC62asFhJM+MCgS5YVZmflk=; b=M9QSVr3oxXjOn+7Mjq/ZQ9+qR5DMjxMvE15HPwPdLuTmZizPbHGGqKGFkpaVIV7YJKtMRm 6ffQ5TG3/X0nkO63cneDXZI4ViBDBvDvOW6VdyUJzSKkl3glfoNEz5DVQXURQc3nWuy9o+ IEz7AB1TT6lR05S644s/pzNnn9lFNwEoXNdFeL21Zsm25+g1c/peiS4GfTPmZuEVS11DV3 Mi4oKGjIgJX91ruD3a20VxU5C7nNbtOpfSYzP7xgU58sgqVYiU45R8fJw4hLY8CHXNq0gK WYKhGONm91dmiuv6IxQAg3WjEor/kkg00qXSAEZG7jG6t7ENfeU/mkQ1Mif6Nw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711104031; a=rsa-sha256; cv=none; b=Ui/EHKG7z7ldSZZzwPN3mX4TTFtGpefRg3N6RaICgtCp94z7f7UtlCtZjmUuK3rJ6N5kEl eW0CEE6L0fXersOAUrD0N/aczCUP/DgqjOrK24bq98ik23GD435IHqD8PLiGYb8U98w7fd 3QaGdjgGMKHobJPpADWbtHszpKGZrqK6PJJGm61A3icwirE+JLSBDivw4ReNxpOHDHNu43 vNx2HtALOQbsynxgHN+QRd/XlP35LmD/Gzsoc2svqsH201Pigmk6uPlA20El2Du7Raolj6 UifyPJ4DqdQbDUoziQmu9a9vA7069QQwm5w+b7ewEW9o/1cSuffCQ0DJt+3HDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711104031; 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=0Za1Yg2JgcriwnvGdLJMpC62asFhJM+MCgS5YVZmflk=; b=ooy7URefpBHGdDlSBPwTb3DWRoTHfiCExPB98UEpzeF4SjlkpeQQLMRck0IdhIQOcy63w3 pgfVfFn5Kv4pvvIvU2tt6HZvyjtoHtEeCjdsaN3vR1DtaCsJOm0kRCc5Y2Bx9msPismV0G t9AGzdEHziqnoa6POfAVW4deJVZUyZ19+JQQEf0PxP6najEkoglGTE09+WtJV2ZA6zs69E gMTC1UfnGQ7qh2Te7j0puxMAtPAj7Bn5Mgq4H+/TPsYptzjtNRkKrLBOcqOonBNvQmLjmp legU5EsuhqZLNxhkTFygDxnD/ECZHY6jvGXc9lF8eSads80wpScO1WwmkWYRnQ== 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 4V1Jkl4FYjz1FF0; Fri, 22 Mar 2024 10:40:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42MAeVmd007681; Fri, 22 Mar 2024 10:40:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42MAeVC4007678; Fri, 22 Mar 2024 10:40:31 GMT (envelope-from git) Date: Fri, 22 Mar 2024 10:40:31 GMT Message-Id: <202403221040.42MAeVC4007678@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Richard Scheffenegger Subject: git: 56b40c285b59 - main - build: add -Wswitch to clang for more consistency with gcc 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: rscheff X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 56b40c285b5994d64e7e8fba821c57f86e91502c Auto-Submitted: auto-generated The branch main has been updated by rscheff: URL: https://cgit.FreeBSD.org/src/commit/?id=56b40c285b5994d64e7e8fba821c57f86e91502c commit 56b40c285b5994d64e7e8fba821c57f86e91502c Author: Richard Scheffenegger AuthorDate: 2024-03-21 21:47:39 +0000 Commit: Richard Scheffenegger CommitDate: 2024-03-22 00:39:01 +0000 build: add -Wswitch to clang for more consistency with gcc gcc12 and gcc13 appear to include Wswitch with Wall, while clang doesn't. For switch() statements on enum, this forces the use of at least a default: clause, in adherance with style(9). Reviewed By: emaste Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D44092 --- sys/conf/kern.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 53781927dee8..5cd3a43f01b8 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -6,7 +6,7 @@ CWARNFLAGS?= -Wall -Wstrict-prototypes \ -Wmissing-prototypes -Wpointer-arith -Wcast-qual \ -Wundef -Wno-pointer-sign ${FORMAT_EXTENSIONS} \ -Wmissing-include-dirs -fdiagnostics-show-option \ - -Wno-unknown-pragmas \ + -Wno-unknown-pragmas -Wswitch \ ${CWARNEXTRA} # # The following flags are next up for working on: