From nobody Tue Apr 18 17:18:11 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 4Q19c36YFsz45NQP; Tue, 18 Apr 2023 17:18:11 +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 4Q19c364vyz3x27; Tue, 18 Apr 2023 17:18:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681838291; 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=X/Cz4BqOQHMHsJ8e6//FvR0P3Ab/JPF4otIR1DVWkiw=; b=P6UxPAeciEAmQ26hqdVoIj7ZaVt/x3b+sKC+S2h/2BYIC303J62hkVMJoshi5/YEAkP9GJ cvRwEg3EJEuEAHp72p2Kk2vgL8K5fFkUMqL4XKYNWF5mn3t6MwPXaePLFeZnhHkwSt7/B1 KA8/pWWLiXzkDoRT5gEJR1ixyrHt7Q+GcEEKOV+kfFKWeZ7529qc4gZfYzQhYwmBELSE7M GcgpQ1+iJCAXnK7bcYEJWHB9Ou+wZbDB8fAa42Cmw49wUQcSDm4OJ6NxxGn2ZaQK6TRV0s p7DdGr4zQBplOX1E50+FL/nIP2Qqa8g0yQYIbPjsIign0gIcg6rkNjNDOLdhVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681838291; 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=X/Cz4BqOQHMHsJ8e6//FvR0P3Ab/JPF4otIR1DVWkiw=; b=XIAh4nhTHyEExsciKBTXt6tsAj7DuN/S8BFiO0OYzjg5k7SS8yYjg7JiUunEdeJdQeIApS XTdv48clogj7YBN2B4UrAiJX6XnHk02cmU1Q/cN0fN4VGK//AIERaJwmWVFNVjIbVKgBPU wJGuOV42PFeQCxRgZJScZkEqFbXKBmT6cqFTY3ZOHi5eOnn7sl8pGhg0ySQsxCbRsRrahL gNElDd2j+fkL2oRMKDsVGhRzdOUkjSekCaT4GhkHUI9fUhmOkf6oyYUkZTAy2gT/8RhjRF SDziUZhtLxjdh2F2HJCW9xrz5Qolcsx8XV6l6dW+PSoDGvME2q0J5VUJ6J68bA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681838291; a=rsa-sha256; cv=none; b=X8werBAe4+PNU5r/n5sTwVgfAOOchmu09VbP41aiJrXcoOwwV7R5Qf5iER1bKwgtsEwnA2 7FIabViH7MOVSY7lKYn3Rw8fm84E53l5LSZI2LAI7XTDEh3tcgYQVlD5QVCwIAGGAMUc/N gaUJ66Uu8r12U/i7z//nFEzkzR0AIG6If1E4UP2uWQPBR/8p0wxepH65saM9NG7qnuasXD sqNU0a3PTMHI0o9VUxKD2nyjpJYZzhD0yGk65iM135YsUoubcj+NCXEHkn4lwbq17BCK8L h1TZbZdYZ2bYmqls615/paaZcibAdhWwC1ubpRqBhcvN+yMGWRAWHr624DT4Ew== 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 4Q19c350h8zL42; Tue, 18 Apr 2023 17:18:11 +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 33IHIBSV094150; Tue, 18 Apr 2023 17:18:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33IHIBbu094149; Tue, 18 Apr 2023 17:18:11 GMT (envelope-from git) Date: Tue, 18 Apr 2023 17:18:11 GMT Message-Id: <202304181718.33IHIBbu094149@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Stephen J. Kiernan" Subject: git: 4e8b87afe008 - main - Handle errors if WARNS is not defined. 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: stevek X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4e8b87afe0085b893b85127f4b05610518d30a67 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by stevek: URL: https://cgit.FreeBSD.org/src/commit/?id=4e8b87afe0085b893b85127f4b05610518d30a67 commit 4e8b87afe0085b893b85127f4b05610518d30a67 Author: Steve Kiernan AuthorDate: 2023-01-16 23:41:20 +0000 Commit: Stephen J. Kiernan CommitDate: 2023-04-18 17:18:01 +0000 Handle errors if WARNS is not defined. One conditional outside of ifdef WARNS did not protect against an unset WARNS. Default WARNS to 0 in conditional if not defined. Obtained from: Juniper Networks, Inc. --- share/mk/bsd.sys.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 8446b8eeae62..9d24c87d9eea 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -149,7 +149,7 @@ WFORMAT= 1 .if ${WFORMAT} > 0 #CWARNFLAGS+= -Wformat-nonliteral -Wformat-security -Wno-format-extra-args CWARNFLAGS+= -Wformat=2 -Wno-format-extra-args -.if ${WARNS} <= 3 +.if ${WARNS:U0} <= 3 CWARNFLAGS.clang+= -Wno-format-nonliteral .endif # WARNS <= 3 .if ${MK_WERROR} != "no" && ${MK_WERROR.${COMPILER_TYPE}:Uyes} != "no"