fraunhoferhhi/vvenc

error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]

Closed this issue · 1 comments

Build fails with clang-18:

/wrkdirs/usr/ports/multimedia/vvenc/work/vvenc-1.11.1/source/Lib/EncoderLib/InterSearch.cpp:2064:15: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
 2064 |     Mv prevMv[m_BlkUniMvInfoBuffer->m_uniMvListMaxSize];
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/multimedia/vvenc/work/vvenc-1.11.1/source/Lib/EncoderLib/InterSearch.cpp:2064:15: note: implicit use of 'this' pointer is only allowed within the evaluation of a call to a 'constexpr' member function
1 error generated.

log

Version: 1.11.1
FreeBSD 15-CURRENT

Could you please try #374 ?