fraunhoferhhi / vvenc

VVenC, the Fraunhofer Versatile Video Encoder
https://www.hhi.fraunhofer.de/en/departments/vca/technologies-and-solutions/h266-vvc.html
BSD 3-Clause Clear License
942 stars 170 forks source link

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

Closed yurivict closed 5 months ago

yurivict commented 5 months ago

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

adamjw24 commented 5 months ago

Could you please try #374 ?