mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
renderer-native: Fix compiler warning
Fix the following compiler warning: ../src/backends/native/meta-renderer-native.c: In function ‘meta_renderer_native_create_view’: /usr/include/glib-2.0/glib/gmacros.h:523:17: warning: ‘formats’ may be used uninitialized in this function [-Wmaybe-uninitialized] 523 | { if (_ptr) (cleanup) ((ParentName *) _ptr); } \ | ^ ../src/backends/native/meta-renderer-native.c:773:22: note: ‘formats’ was declared here 773 | g_autoptr (GArray) formats; | ^~~~~~~ https://gitlab.gnome.org/GNOME/mutter/merge_requests/632
This commit is contained in:
parent
a8984a81c2
commit
7fcdd60ac5
@ -770,7 +770,7 @@ pick_secondary_gpu_framebuffer_format_for_cpu (CoglOnscreen *onscreen,
|
||||
/* The rest are other fairly commonly used formats in OpenGL. */
|
||||
DRM_FORMAT_XRGB8888,
|
||||
};
|
||||
g_autoptr (GArray) formats;
|
||||
g_autoptr (GArray) formats = NULL;
|
||||
size_t k;
|
||||
unsigned int i;
|
||||
uint32_t drm_format;
|
||||
|
Loading…
Reference in New Issue
Block a user