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

(cherry picked from commit dc0b4094abf6784bf1a9492c2fea3fb91116b014)

Details

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