Skip to content

Fix compilation with older GCC versions#92

Merged
jbkempf merged 3 commits into
videolan:masterfrom
ePirat:epirat-fix-deprecation-attribute-mix
May 13, 2026
Merged

Fix compilation with older GCC versions#92
jbkempf merged 3 commits into
videolan:masterfrom
ePirat:epirat-fix-deprecation-attribute-mix

Conversation

@ePirat
Copy link
Copy Markdown
Collaborator

@ePirat ePirat commented May 13, 2026

GCC versions 12 and older choke when mixing the C++ attribute syntax [[]] with the GCC/Clang style __attribute__(()) one, to work around this, this PR adds a new SPAUDIO_DEPRECATED macro that is defined accordingly to avoid such mixing on affected versions.

Fixes the build failure observed for https://code.videolan.org/videolan/vlc/-/merge_requests/8700

ePirat added 2 commits May 13, 2026 13:28
This is a helper to declare an API as deprecated, adding a workaround
for GCC <13, which chokes when the native C++ attribute style [[]] is
combined with __attribute__(()).
Fixes compilation with GCC 12 and older.
@ePirat ePirat added this to the v0.4.1 Release milestone May 13, 2026
The fact that the class is deprecated is already implied by the
presence of the attribute itself.
@jbkempf jbkempf merged commit 30360aa into videolan:master May 13, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants