HomeFreeBSD

Silence VLA extension warnings in fusefs tests

Description

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

Details

Provenance
dimAuthored on Dec 21 2023, 10:41 PM
Parents
rG69c8025a4984: Silence snprintf truncation warnings in printf_test examples
Branches
Unknown
Tags
Unknown