thread: Remove unused variable when HAVE_PROFILER is not defined
This fixes a compiler warning: ``` meta-thread.c:297:16: warning: unused variable ‘context’ [-Wunused-variable] 297 | MetaContext *context = meta_backend_get_context (priv->backend); | ^~~~~~~ ``` Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3223>
This commit is contained in:
parent
fdbd38121b
commit
98738535dc
@ -292,11 +292,11 @@ thread_impl_func (gpointer user_data)
|
|||||||
{
|
{
|
||||||
MetaThread *thread = META_THREAD (user_data);
|
MetaThread *thread = META_THREAD (user_data);
|
||||||
MetaThreadPrivate *priv = meta_thread_get_instance_private (thread);
|
MetaThreadPrivate *priv = meta_thread_get_instance_private (thread);
|
||||||
MetaContext *context = meta_backend_get_context (priv->backend);
|
|
||||||
MetaThreadImpl *impl = priv->impl;
|
MetaThreadImpl *impl = priv->impl;
|
||||||
MetaThreadImplRunFlags run_flags = META_THREAD_IMPL_RUN_FLAG_NONE;
|
MetaThreadImplRunFlags run_flags = META_THREAD_IMPL_RUN_FLAG_NONE;
|
||||||
GMainContext *thread_context = meta_thread_impl_get_main_context (impl);
|
GMainContext *thread_context = meta_thread_impl_get_main_context (impl);
|
||||||
#ifdef HAVE_PROFILER
|
#ifdef HAVE_PROFILER
|
||||||
|
MetaContext *context = meta_backend_get_context (priv->backend);
|
||||||
MetaProfiler *profiler = meta_context_get_profiler (context);
|
MetaProfiler *profiler = meta_context_get_profiler (context);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user