From nobody Thu Dec 21 22:46:07 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 4Sx5BS1mJmz54N4P; Thu, 21 Dec 2023 22:46:08 +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 4Sx5BR6FfBz4VSs; Thu, 21 Dec 2023 22:46:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703198767; 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=4D9ecGid8mNrF7tMSQjibfW6OjeeYEDQQ+JSlT1p4iE=; b=rRIfCjO6hZownflmclOy+CvcW1/3KdCeYSQ99B4BF6yJ/4ekwcOcnlH6SxZ3wuxRESbk6R 5maVC33c5wr2bg6fFXfWDmwSPVtRW5u2opIr5tlaNwdwTUfA8EXbFPLeAbVh7zqg4ERAeU KjGEZFt0DPydW1r+rT62cLnl8fPJDdwBmhzTi0+pqRawSO8jQY7ZkaK2G5DL7qVJVBMfvx 6vCo33DUolaQ95NAyzMJRrimePOTvRcppuMKrhn3i+G8GL0hrZJL5u0BAX8iFCHRpng2HW LVFj6zbDAOkgnG8C0JkAxgvbPsfnwOVie11t2AQ1j05TDAvncuPRF06SYtT3Zw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703198767; a=rsa-sha256; cv=none; b=wt3aVcU24/xv5TV9892clBBomULH+d2vcmVaKXzDBBwxofGjth/XVB1vHI20NMXQNTsvgR K/4u1V4tKGFRbjqIMPV6nA7yN625JArGAY3NUxkX9540Wu7q8IeFjq3EktmSf7W6i/fGiS qT/ryMfYnBr4Im/TnkvCAPci/JXRby4I+kcld8skSHLo6BKWjPTJDlMiVfCKb3bRYPRyD1 VRoQNG0hLLhWdQzyfo1gUoV6KuE4h9udWVug2OhoNhJ/TPXdC5Pd/pqvPzM5NO8S/mRfNJ Q7N6lAfFn8AxDR4XBMvhyC/ygYhK4BX+m/lukGk8dHm8xsOLOb42AppxMkTmAQ== 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=1703198767; 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=4D9ecGid8mNrF7tMSQjibfW6OjeeYEDQQ+JSlT1p4iE=; b=DCnlAnSKOs5a20aRsKpkXeAUKi2ZWBBzyrUTOWBx1bXnoRAKFmx4TLCKIhNaMSdPBlAj/B H5a7QF0kBCLcRKFEWnIvdeCAVCxj+suXFsPrD7Wx8tCTfMsMdQJfMgu0y4LrBLOsxg7/5Z pEJ3yVIAdxt/08OEWo9AybAvjFe3GmIPZV9rqQsBgARp5UiN0mVnlCP5b0ijPL/bFNFK+0 96RE5h810uBkTEGlgD0DhGSGlhvh5gF0gC4XpTrUz09a8ltjP4+VVI9F7sMOhD5w53RP3U +c6TMwQ/8m4xaH0aRuMShFyoI/b93YUIUQb7PZHWPCC73RV64BthRfEB03fRWw== 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 4Sx5BR5LWyzrm5; Thu, 21 Dec 2023 22:46:07 +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 3BLMk79Y086100; Thu, 21 Dec 2023 22:46:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BLMk7dI086097; Thu, 21 Dec 2023 22:46:07 GMT (envelope-from git) Date: Thu, 21 Dec 2023 22:46:07 GMT Message-Id: <202312212246.3BLMk7dI086097@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: dc0b4094abf6 - main - Silence VLA extension warnings in fusefs tests 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dc0b4094abf6784bf1a9492c2fea3fb91116b014 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=dc0b4094abf6784bf1a9492c2fea3fb91116b014 commit dc0b4094abf6784bf1a9492c2fea3fb91116b014 Author: Dimitry Andric AuthorDate: 2023-12-21 22:41:57 +0000 Commit: Dimitry Andric CommitDate: 2023-12-21 22:45:52 +0000 Silence VLA extension warnings in fusefs tests Building tests/sys/fs/fusefs with clang 18 results the following warning: tests/sys/fs/fusefs/cache.cc:145:14: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension] 145 | uint8_t buf[bufsize]; | ^~~~~~~ Because we do not particularly care that this is a clang extension, suppress the warning. MFC after: 3 days --- tests/sys/fs/fusefs/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/sys/fs/fusefs/Makefile b/tests/sys/fs/fusefs/Makefile index 6b0a6ef366b0..f45f2f93e1c0 100644 --- a/tests/sys/fs/fusefs/Makefile +++ b/tests/sys/fs/fusefs/Makefile @@ -83,6 +83,10 @@ CXXWARNFLAGS+= -Wno-class-memaccess CXXWARNFLAGS.gcc+= -Wno-unused-but-set-variable # Suppress warnings about deprecated implicit copy constructors in gtest. CXXWARNFLAGS+= -Wno-deprecated-copy +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 180000 +# clang 18.0.0 introduces a new warning about variable length arrays in C++. +CXXWARNFLAGS+= -Wno-vla-cxx-extension +.endif CXXFLAGS+= -I${SRCTOP}/tests CXXFLAGS+= -I${FUSEFS} CXXFLAGS+= -I${MOUNT}