Skip to content
New issue

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

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

Already on GitHub? Sign in 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.

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

No branches or pull requests

1 participant