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

MixStream: g_mutex_free is deprecated #1

Closed
Linkid opened this issue Mar 8, 2019 · 0 comments · Fixed by #29
Closed

MixStream: g_mutex_free is deprecated #1

Linkid opened this issue Mar 8, 2019 · 0 comments · Fixed by #29

Comments

@Linkid
Copy link
Member

Linkid commented Mar 8, 2019

This warning was raised when compiling the MixStream extension:

fretwork/mixstream/MixStream.c: In function ‘mix_stream_destroy’:
fretwork/mixstream/MixStream.c:135:3: warning: ‘g_mutex_free’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:275) [-Wdeprecated-declarations]

As we're using glib 2.34.3+, g_mutex_free can be removed or replaced by g_mutex_clear.
Eventually, we can add a condition on the version of glib.

@Linkid Linkid transferred this issue from fofix/fretwork Dec 15, 2019
Linkid referenced this issue in Linkid/python-mixstream Mar 13, 2022
To free resources allocated to the mutex, `g_mutex_free` is deprecated.

Ref #1
@Linkid Linkid linked a pull request Mar 13, 2022 that will close this issue
Linkid added a commit that referenced this issue Mar 16, 2022
To free resources allocated to the mutex, `g_mutex_free` is deprecated.

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

Successfully merging a pull request may close this issue.

1 participant