tbsdtv/linux_media

Compilation fails on 6.1.0-27-amd64

Opened this issue · 0 comments

/home/casandro/tbs-2024-11-11_1813/media_build/v4l/tbs-ci.c: In function 'tbsci_i2c_write':
/home/casandro/tbs-2024-11-11_1813/media_build/v4l/tbs-ci.c:51:9: warning: ISO C90 forbids variable length array 'buf' [-Wvla]
   51 |         unsigned char buf[len + 1];
      |       

I fixed it by using malloc and free instead of variable length arrays.