-
Notifications
You must be signed in to change notification settings - Fork 129
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
alsa-utils 1.2.10 fails to build with old gcc #233
Comments
Ok, thanks. It seems that GCC 11+ only supports this feature: https://en.cppreference.com/w/c/compiler_support I think that we should probably go back to ATTRIBUTE_UNUSED - |
Yes, or add -Wno-unused-parameter option for newer gcc. |
We need to support older compilers than GCC 11. Link: #233 Fixes: 181e190 ("aplaymidi: fix the verbose compilation warnings for latest gcc") Fixes: a03377a ("aseqnet: fix the verbose compilation warnings for latest gcc") Fixes: 429c32a ("aseqdump: fix the verbose compilation warnings for latest gcc") Fixes: 0b48dd6 ("aconnect: fix the verbose compilation warnings for latest gcc") Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Ok, above commits should fix this issue. Tested with gcc 4.8.5. |
Thanks! I confirmed those fixes working in my side, too. |
FWIW, I checked gcc7 and gcc12. |
Just facing this issue in EDIT: After applying above commits seems this is solved. |
I will release 1.2.11 soon. |
The recent change for fixes builds on the latest gcc broke the builds on the older gcc version instead.
The truncated parameters can't be handled well by the older gcc.
I guess we should rather add the option to ignore the unused parameters instead of truncating unused parameters. Not all compilers support those new syntax.
The text was updated successfully, but these errors were encountered: