Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Compilation fails on 6.1.0-27-amd64 #362

Open
Casandro opened this issue Nov 11, 2024 · 0 comments
Open

Compilation fails on 6.1.0-27-amd64 #362

Casandro opened this issue Nov 11, 2024 · 0 comments

Comments

@Casandro
Copy link

/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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant