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
Add missing enum value. #64
Conversation
@jlindgren90: How would you name the enum value?
@madpilot78: I think we should use this new enum value instead of -1 in |
You're definitely right. I'll wait for a decision on what it should be called and then update the review accordingly. |
I vote for |
Updated according to suggestions. |
New versions of the clang compiler have strict checks for enum values. The value "-1" is returned as a last resort from to_vfs_seek_type() as a VFSSeekType. Replace usage of `-1` with the new enum name.
Merged with slight changes. Thanks! |
backported from: audacious-media-player/audacious#64 Closes: https://bugs.gentoo.org/896412 Signed-off-by: x7upLime <andrew@andrewdomain.com>
backported from: audacious-media-player/audacious#64 Closes: https://bugs.gentoo.org/896412 Signed-off-by: Andrei Corduneanu <andrew@andrewdomain.com>
backported from: audacious-media-player/audacious#64 Closes: https://bugs.gentoo.org/896412 Signed-off-by: Andrei Corduneanu <andrew@andrewdomain.com> Closes: #31980 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
New versions of the clang compiler have strict checks for enum values.
The value "-1" is returned as a last resort from to_vfs_seek_type() as a VFSSeekType.
I added the value with a name that makes sense for such usage.
For context:
This is necessary to make audacious compile on latest FreeBSD head (future FreeBSD 14.0) which includes clang version 16.
I already added thsi as a local patch to the FreeBSD ports tree: freebsd/freebsd-ports@72610ec